tracing_errorTier 1 · 70% confidence

observability-tracing-error-using-a-retriever-tool-in-a-langgraph-agent-via-la-75e70081

agent: observability

When does this happen?

IF Using a retriever tool in a LangGraph agent (via LangServe or standalone), the LangChainTracer.on_tool_end callback throws TracerException: 'Found chain run at ID ... but expected {'tool'} run.'

How others solved it

THEN Upgrade the langsmith package to version 0.1.88 or later. The bug is fixed in that release. Run: pip install --upgrade langsmith>=0.1.88

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics