on_tool_start() — langchain Function Reference
Architecture documentation for the on_tool_start() function in streaming_stdout.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 15dec698_fe33_871b_57a9_98f607e8da20["on_tool_start()"] 6b65bf57_0fa9_b411_5886_294d6dbe5842["StreamingStdOutCallbackHandler"] 15dec698_fe33_871b_57a9_98f607e8da20 -->|defined in| 6b65bf57_0fa9_b411_5886_294d6dbe5842 style 15dec698_fe33_871b_57a9_98f607e8da20 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/streaming_stdout.py lines 103–112
def on_tool_start(
self, serialized: dict[str, Any], input_str: str, **kwargs: Any
) -> None:
"""Run when the tool starts running.
Args:
serialized: The serialized tool.
input_str: The input string.
**kwargs: Additional keyword arguments.
"""
Domain
Subdomains
Source
Frequently Asked Questions
What does on_tool_start() do?
on_tool_start() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/streaming_stdout.py.
Where is on_tool_start() defined?
on_tool_start() is defined in libs/core/langchain_core/callbacks/streaming_stdout.py at line 103.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free