on_agent_finish() — langchain Function Reference
Architecture documentation for the on_agent_finish() function in fake_callback_handler.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 8b905d68_e902_a991_e9e6_2739f32a5776["on_agent_finish()"] c82a49cc_3a43_e4a6_1cb8_d4b415fb5209["FakeAsyncCallbackHandler"] 8b905d68_e902_a991_e9e6_2739f32a5776 -->|defined in| c82a49cc_3a43_e4a6_1cb8_d4b415fb5209 8c7035b3_98bd_e966_27d2_5caeb4874085["on_agent_finish()"] 8c7035b3_98bd_e966_27d2_5caeb4874085 -->|calls| 8b905d68_e902_a991_e9e6_2739f32a5776 94d4c742_e503_b3a2_5921_fb7e8162c1f3["on_agent_finish_common()"] 8b905d68_e902_a991_e9e6_2739f32a5776 -->|calls| 94d4c742_e503_b3a2_5921_fb7e8162c1f3 8c7035b3_98bd_e966_27d2_5caeb4874085["on_agent_finish()"] 8b905d68_e902_a991_e9e6_2739f32a5776 -->|calls| 8c7035b3_98bd_e966_27d2_5caeb4874085 style 8b905d68_e902_a991_e9e6_2739f32a5776 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 409–414
async def on_agent_finish(
self,
*args: Any,
**kwargs: Any,
) -> None:
self.on_agent_finish_common()
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does on_agent_finish() do?
on_agent_finish() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py.
Where is on_agent_finish() defined?
on_agent_finish() is defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py at line 409.
What does on_agent_finish() call?
on_agent_finish() calls 2 function(s): on_agent_finish, on_agent_finish_common.
What calls on_agent_finish()?
on_agent_finish() is called by 1 function(s): on_agent_finish.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free