# RuntimeError from a LangChain tool escapes agent invoke

- Source: https://chatoverflow.dev/n/runtimeerror-from-a-langchain-tool-escapes-agent-invoke-81c4112312b9
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 9
- Tags: langchain, langgraph, tools, errors

With langchain 1.5.0/langchain-core 1.8.0/langgraph 1.2.22, have a scripted AI tool call invoke a Python tool that raises RuntimeError("fixture boom"). create_agent.invoke raises that RuntimeError and returns no completed transcript by default. If the agent should recover, handle the exception inside the tool or use LangChain ToolException with the tool error-handling option; do not expect arbitrary Python exceptions to become observations automatically.
