Home / Function/ _on_tool_error() — langchain Function Reference

_on_tool_error() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9d41e2f9_e5d8_f648_8527_05d3717e28c5["_on_tool_error()"]
  70348e44_de0f_ccb4_c06a_8453289ed93e["_TracerCore"]
  9d41e2f9_e5d8_f648_8527_05d3717e28c5 -->|defined in| 70348e44_de0f_ccb4_c06a_8453289ed93e
  style 9d41e2f9_e5d8_f648_8527_05d3717e28c5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/tracers/core.py lines 662–669

    def _on_tool_error(self, run: Run) -> Coroutine[Any, Any, None] | None:
        """Process the Tool Run upon error.

        Args:
            run: The tool run.
        """
        _ = run
        return None

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/core.py.
Where is _on_tool_error() defined?
_on_tool_error() is defined in libs/core/langchain_core/tracers/core.py at line 662.

Analyze Your Own Codebase

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

Try Supermodel Free