ToolException Class — langchain Architecture
Architecture documentation for the ToolException class in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c7e92770_8ad1_d71d_1006_9850d3cc3ac2["ToolException"] 80cebff4_efbd_4311_85e9_de0dc81a7eee["base.py"] c7e92770_8ad1_d71d_1006_9850d3cc3ac2 -->|defined in| 80cebff4_efbd_4311_85e9_de0dc81a7eee
Relationship Graph
Source Code
libs/core/langchain_core/tools/base.py lines 390–397
class ToolException(Exception): # noqa: N818
"""Exception thrown when a tool execution error occurs.
This exception allows tools to signal errors without stopping the agent.
The error is handled according to the tool's `handle_tool_error` setting, and the
result is returned as an observation to the agent.
"""
Defined In
Source
Frequently Asked Questions
What is the ToolException class?
ToolException is a class in the langchain codebase, defined in libs/core/langchain_core/tools/base.py.
Where is ToolException defined?
ToolException is defined in libs/core/langchain_core/tools/base.py at line 390.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free