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
  9b26afa0_2fcf_3776_a52d_a826df48203d["on_tool_error()"]
  c82a49cc_3a43_e4a6_1cb8_d4b415fb5209["FakeAsyncCallbackHandler"]
  9b26afa0_2fcf_3776_a52d_a826df48203d -->|defined in| c82a49cc_3a43_e4a6_1cb8_d4b415fb5209
  962d715b_e121_5bb9_84cf_7de55359d204["on_tool_error()"]
  962d715b_e121_5bb9_84cf_7de55359d204 -->|calls| 9b26afa0_2fcf_3776_a52d_a826df48203d
  76cf9788_8661_4afc_f05f_61b94b16efd9["on_tool_error_common()"]
  9b26afa0_2fcf_3776_a52d_a826df48203d -->|calls| 76cf9788_8661_4afc_f05f_61b94b16efd9
  962d715b_e121_5bb9_84cf_7de55359d204["on_tool_error()"]
  9b26afa0_2fcf_3776_a52d_a826df48203d -->|calls| 962d715b_e121_5bb9_84cf_7de55359d204
  style 9b26afa0_2fcf_3776_a52d_a826df48203d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 393–398

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