_on_tool_error() — langchain Function Reference
Architecture documentation for the _on_tool_error() function in langchain.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD dd6d0605_995c_3548_8629_97f699e21c8a["_on_tool_error()"] 178590bb_85ff_b79e_979a_46e5c3c5389f["LangChainTracer"] dd6d0605_995c_3548_8629_97f699e21c8a -->|defined in| 178590bb_85ff_b79e_979a_46e5c3c5389f bce3427a_d6ea_f317_a362_d28206fa1696["_update_run_single()"] dd6d0605_995c_3548_8629_97f699e21c8a -->|calls| bce3427a_d6ea_f317_a362_d28206fa1696 style dd6d0605_995c_3548_8629_97f699e21c8a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/tracers/langchain.py lines 356–358
def _on_tool_error(self, run: Run) -> None:
"""Process the Tool Run upon error."""
self._update_run_single(run)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does _on_tool_error() do?
_on_tool_error() is a function in the langchain codebase, defined in libs/core/langchain_core/tracers/langchain.py.
Where is _on_tool_error() defined?
_on_tool_error() is defined in libs/core/langchain_core/tracers/langchain.py at line 356.
What does _on_tool_error() call?
_on_tool_error() calls 1 function(s): _update_run_single.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free