Home / Function/ _on_tool_error() — langchain Function Reference

_on_tool_error() — langchain Function Reference

Architecture documentation for the _on_tool_error() function in base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  9a70c96e_33ef_9783_8499_a59cc28d833f["_on_tool_error()"]
  b3ab8001_c14c_4191_ca53_2dbabc99917f["AsyncBaseTracer"]
  9a70c96e_33ef_9783_8499_a59cc28d833f -->|defined in| b3ab8001_c14c_4191_ca53_2dbabc99917f
  7b1515cd_3108_e749_226d_30eb77f926e0["on_tool_error()"]
  7b1515cd_3108_e749_226d_30eb77f926e0 -->|calls| 9a70c96e_33ef_9783_8499_a59cc28d833f
  f8eb0e19_0f22_c54c_2715_ebbd3aa1cb00["on_tool_error()"]
  f8eb0e19_0f22_c54c_2715_ebbd3aa1cb00 -->|calls| 9a70c96e_33ef_9783_8499_a59cc28d833f
  style 9a70c96e_33ef_9783_8499_a59cc28d833f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/base.py lines 905–906

    async def _on_tool_error(self, run: Run) -> None:
        """Process the Tool Run upon error."""

Domain

Subdomains

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/base.py.
Where is _on_tool_error() defined?
_on_tool_error() is defined in libs/core/langchain_core/tracers/base.py at line 905.
What calls _on_tool_error()?
_on_tool_error() is called by 2 function(s): on_tool_error, on_tool_error.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free