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