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
  39c2695f_456f_12f0_f7aa_2023eda4b079["on_tool_error()"]
  9659be4f_91d1_3b62_bcfb_38c048777165["FakeCallbackHandler"]
  39c2695f_456f_12f0_f7aa_2023eda4b079 -->|defined in| 9659be4f_91d1_3b62_bcfb_38c048777165
  037454c0_3031_6e8a_1134_daf5366a6924["on_tool_error()"]
  037454c0_3031_6e8a_1134_daf5366a6924 -->|calls| 39c2695f_456f_12f0_f7aa_2023eda4b079
  b3340805_72f0_87a2_34d1_fa95dd8e35cc["on_tool_error_common()"]
  39c2695f_456f_12f0_f7aa_2023eda4b079 -->|calls| b3340805_72f0_87a2_34d1_fa95dd8e35cc
  037454c0_3031_6e8a_1134_daf5366a6924["on_tool_error()"]
  39c2695f_456f_12f0_f7aa_2023eda4b079 -->|calls| 037454c0_3031_6e8a_1134_daf5366a6924
  style 39c2695f_456f_12f0_f7aa_2023eda4b079 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/fake/callbacks.py lines 223–228

    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/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 223.
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