on_tool_end() — langchain Function Reference
Architecture documentation for the on_tool_end() function in manager.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 73c64fa8_8671_57c1_b764_0e1ee3c5a51b["on_tool_end()"] 4bbdce53_aee3_a4dd_64c9_5813ff30b559["AsyncCallbackManagerForToolRun"] 73c64fa8_8671_57c1_b764_0e1ee3c5a51b -->|defined in| 4bbdce53_aee3_a4dd_64c9_5813ff30b559 b9e1e1b1_29a3_f8f4_77f9_b2d38254e1c6["on_tool_end()"] b9e1e1b1_29a3_f8f4_77f9_b2d38254e1c6 -->|calls| 73c64fa8_8671_57c1_b764_0e1ee3c5a51b b9e1e1b1_29a3_f8f4_77f9_b2d38254e1c6["on_tool_end()"] 73c64fa8_8671_57c1_b764_0e1ee3c5a51b -->|calls| b9e1e1b1_29a3_f8f4_77f9_b2d38254e1c6 3a243d21_72d1_dca9_f7be_acbb482b9f86["ahandle_event()"] 73c64fa8_8671_57c1_b764_0e1ee3c5a51b -->|calls| 3a243d21_72d1_dca9_f7be_acbb482b9f86 style 73c64fa8_8671_57c1_b764_0e1ee3c5a51b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/manager.py lines 1128–1147
async def on_tool_end(self, output: Any, **kwargs: Any) -> None:
"""Async run when the tool ends running.
Args:
output: The output of the tool.
**kwargs: Additional keyword arguments.
"""
if not self.handlers:
return
await ahandle_event(
self.handlers,
"on_tool_end",
"ignore_agent",
output,
run_id=self.run_id,
parent_run_id=self.parent_run_id,
tags=self.tags,
**kwargs,
)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does on_tool_end() do?
on_tool_end() is a function in the langchain codebase, defined in libs/core/langchain_core/callbacks/manager.py.
Where is on_tool_end() defined?
on_tool_end() is defined in libs/core/langchain_core/callbacks/manager.py at line 1128.
What does on_tool_end() call?
on_tool_end() calls 2 function(s): ahandle_event, on_tool_end.
What calls on_tool_end()?
on_tool_end() is called by 1 function(s): on_tool_end.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free