library · inferred from evidence
langchain_core.tools
A library providing tool decorators and utilities for LangChain.
- "fake_search is not a valid tool, try one of [tool]" in LangGraph
Fixes "[name] is not a valid tool, try one of [tool]" when a custom LangGraph tool is rejected at runtime. Use when built-in tools work but your custom function gets this error. Cause: tools registered in only one of the two places. Fix: pa
- 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