Home / Function/ on_tool_start() — langchain Function Reference

on_tool_start() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  337fb5cb_77f9_cbda_21f4_7613f5805b7f["on_tool_start()"]
  66da139c_43ad_70b6_544d_0cf450da0b2f["FakeCallbackHandler"]
  337fb5cb_77f9_cbda_21f4_7613f5805b7f -->|defined in| 66da139c_43ad_70b6_544d_0cf450da0b2f
  e49bbfc5_085a_c063_dc2e_45a45713ed1c["on_tool_start()"]
  e49bbfc5_085a_c063_dc2e_45a45713ed1c -->|calls| 337fb5cb_77f9_cbda_21f4_7613f5805b7f
  fec61471_e859_5489_e467_47c81cdfc9dc["on_tool_start_common()"]
  337fb5cb_77f9_cbda_21f4_7613f5805b7f -->|calls| fec61471_e859_5489_e467_47c81cdfc9dc
  e49bbfc5_085a_c063_dc2e_45a45713ed1c["on_tool_start()"]
  337fb5cb_77f9_cbda_21f4_7613f5805b7f -->|calls| e49bbfc5_085a_c063_dc2e_45a45713ed1c
  style 337fb5cb_77f9_cbda_21f4_7613f5805b7f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 204–209

    def on_tool_start(
        self,
        *args: Any,
        **kwargs: Any,
    ) -> Any:
        self.on_tool_start_common()

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_tool_start() do?
on_tool_start() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py.
Where is on_tool_start() defined?
on_tool_start() is defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py at line 204.
What does on_tool_start() call?
on_tool_start() calls 2 function(s): on_tool_start, on_tool_start_common.
What calls on_tool_start()?
on_tool_start() is called by 1 function(s): on_tool_start.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free