on_tool_end() — langchain Function Reference
Architecture documentation for the on_tool_end() function in base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 4ddeba77_793f_e571_7112_2a8a1843fc0f["on_tool_end()"] 64513429_d001_87b1_5f19_cc17a3f3577b["AsyncCallbackHandler"] 4ddeba77_793f_e571_7112_2a8a1843fc0f -->|defined in| 64513429_d001_87b1_5f19_cc17a3f3577b f41862f8_b410_3d33_6f90_7b994f0c2e1c["on_tool_end()"] f41862f8_b410_3d33_6f90_7b994f0c2e1c -->|calls| 4ddeba77_793f_e571_7112_2a8a1843fc0f f41862f8_b410_3d33_6f90_7b994f0c2e1c["on_tool_end()"] 4ddeba77_793f_e571_7112_2a8a1843fc0f -->|calls| f41862f8_b410_3d33_6f90_7b994f0c2e1c style 4ddeba77_793f_e571_7112_2a8a1843fc0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/callbacks/base.py lines 701–718
async def on_tool_end(
self,
output: Any,
*,
run_id: UUID,
parent_run_id: UUID | None = None,
tags: list[str] | None = None,
**kwargs: Any,
) -> None:
"""Run when the tool ends running.
Args:
output: The output of the tool.
run_id: The ID of the current run.
parent_run_id: The ID of the parent run.
tags: The tags.
**kwargs: Additional keyword arguments.
"""
Domain
Subdomains
Defined In
Calls
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/base.py.
Where is on_tool_end() defined?
on_tool_end() is defined in libs/core/langchain_core/callbacks/base.py at line 701.
What does on_tool_end() call?
on_tool_end() calls 1 function(s): 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