Home / Function/ on_tool_error() — langchain Function Reference

on_tool_error() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  962d715b_e121_5bb9_84cf_7de55359d204["on_tool_error()"]
  66da139c_43ad_70b6_544d_0cf450da0b2f["FakeCallbackHandler"]
  962d715b_e121_5bb9_84cf_7de55359d204 -->|defined in| 66da139c_43ad_70b6_544d_0cf450da0b2f
  9b26afa0_2fcf_3776_a52d_a826df48203d["on_tool_error()"]
  9b26afa0_2fcf_3776_a52d_a826df48203d -->|calls| 962d715b_e121_5bb9_84cf_7de55359d204
  76cf9788_8661_4afc_f05f_61b94b16efd9["on_tool_error_common()"]
  962d715b_e121_5bb9_84cf_7de55359d204 -->|calls| 76cf9788_8661_4afc_f05f_61b94b16efd9
  9b26afa0_2fcf_3776_a52d_a826df48203d["on_tool_error()"]
  962d715b_e121_5bb9_84cf_7de55359d204 -->|calls| 9b26afa0_2fcf_3776_a52d_a826df48203d
  style 962d715b_e121_5bb9_84cf_7de55359d204 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 220–225

    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/langchain/tests/unit_tests/callbacks/fake_callback_handler.py.
Where is on_tool_error() defined?
on_tool_error() is defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py at line 220.
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