library · inferred from evidence
ToolException
An exception class from langchain_core.tools raised by tools for runtime failures.
- Handling ToolException in a LangGraph agent without killing the run
Shows how to handle ToolException inside a LangGraph agent so one bad tool call does not kill the run. Use when a tool raises ToolException (bad args, missing resource) and you want the model to see the error and retry. Pattern: catch it in