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
  965dd422_531a_f683_f87f_8e41c54c391d["on_tool_error()"]
  97fbbdab_62ae_4a18_0986_15714bc2ccda["FakeCallbackHandler"]
  965dd422_531a_f683_f87f_8e41c54c391d -->|defined in| 97fbbdab_62ae_4a18_0986_15714bc2ccda
  564cb9df_4b2f_4df8_8bdf_488512e6b253["on_tool_error()"]
  564cb9df_4b2f_4df8_8bdf_488512e6b253 -->|calls| 965dd422_531a_f683_f87f_8e41c54c391d
  1fe6bcf1_a171_276e_e262_6f019772e0b9["on_tool_error_common()"]
  965dd422_531a_f683_f87f_8e41c54c391d -->|calls| 1fe6bcf1_a171_276e_e262_6f019772e0b9
  564cb9df_4b2f_4df8_8bdf_488512e6b253["on_tool_error()"]
  965dd422_531a_f683_f87f_8e41c54c391d -->|calls| 564cb9df_4b2f_4df8_8bdf_488512e6b253
  style 965dd422_531a_f683_f87f_8e41c54c391d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/groq/tests/unit_tests/fake/callbacks.py lines 212–217

    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/groq/tests/unit_tests/fake/callbacks.py.
Where is on_tool_error() defined?
on_tool_error() is defined in libs/partners/groq/tests/unit_tests/fake/callbacks.py at line 212.
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