Home / Function/ on_tool_error() — langchain Function Reference

on_tool_error() — langchain Function Reference

Architecture documentation for the on_tool_error() function in callbacks.py from the langchain codebase.

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  0a639209_89a9_5e19_6e03_3bfb28db9296["on_tool_error()"]
  b9664d7e_7900_dd8a_b9b3_2ee136c7b790["FakeCallbackHandler"]
  0a639209_89a9_5e19_6e03_3bfb28db9296 -->|defined in| b9664d7e_7900_dd8a_b9b3_2ee136c7b790
  44396a60_e678_abe5_b7ec_9780445b74b0["on_tool_error()"]
  44396a60_e678_abe5_b7ec_9780445b74b0 -->|calls| 0a639209_89a9_5e19_6e03_3bfb28db9296
  12c7d2ab_5388_0241_bb30_8cfd982ec05e["on_tool_error_common()"]
  0a639209_89a9_5e19_6e03_3bfb28db9296 -->|calls| 12c7d2ab_5388_0241_bb30_8cfd982ec05e
  44396a60_e678_abe5_b7ec_9780445b74b0["on_tool_error()"]
  0a639209_89a9_5e19_6e03_3bfb28db9296 -->|calls| 44396a60_e678_abe5_b7ec_9780445b74b0
  style 0a639209_89a9_5e19_6e03_3bfb28db9296 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 172–173

    def on_tool_error(self, *args: Any, **kwargs: Any) -> Any:
        self.on_tool_error_common()

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_tool_error() do?
on_tool_error() is a function in the langchain codebase, defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py.
Where is on_tool_error() defined?
on_tool_error() is defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py at line 172.
What does on_tool_error() call?
on_tool_error() calls 2 function(s): on_tool_error, on_tool_error_common.
What calls on_tool_error()?
on_tool_error() is called by 1 function(s): on_tool_error.

Analyze Your Own Codebase

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

Try Supermodel Free