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.

Entity Profile

Dependency Diagram

graph TD
  037454c0_3031_6e8a_1134_daf5366a6924["on_tool_error()"]
  420de797_6be5_1482_0203_e7dd66c71fd0["FakeAsyncCallbackHandler"]
  037454c0_3031_6e8a_1134_daf5366a6924 -->|defined in| 420de797_6be5_1482_0203_e7dd66c71fd0
  39c2695f_456f_12f0_f7aa_2023eda4b079["on_tool_error()"]
  39c2695f_456f_12f0_f7aa_2023eda4b079 -->|calls| 037454c0_3031_6e8a_1134_daf5366a6924
  b3340805_72f0_87a2_34d1_fa95dd8e35cc["on_tool_error_common()"]
  037454c0_3031_6e8a_1134_daf5366a6924 -->|calls| b3340805_72f0_87a2_34d1_fa95dd8e35cc
  39c2695f_456f_12f0_f7aa_2023eda4b079["on_tool_error()"]
  037454c0_3031_6e8a_1134_daf5366a6924 -->|calls| 39c2695f_456f_12f0_f7aa_2023eda4b079
  style 037454c0_3031_6e8a_1134_daf5366a6924 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/fake/callbacks.py lines 397–402

    async def on_tool_error(
        self,
        *args: Any,
        **kwargs: Any,
    ) -> None:
        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/core/tests/unit_tests/fake/callbacks.py.
Where is on_tool_error() defined?
on_tool_error() is defined in libs/core/tests/unit_tests/fake/callbacks.py at line 397.
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