Home / Function/ on_agent_finish() — langchain Function Reference

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
  8c7035b3_98bd_e966_27d2_5caeb4874085["on_agent_finish()"]
  66da139c_43ad_70b6_544d_0cf450da0b2f["FakeCallbackHandler"]
  8c7035b3_98bd_e966_27d2_5caeb4874085 -->|defined in| 66da139c_43ad_70b6_544d_0cf450da0b2f
  8b905d68_e902_a991_e9e6_2739f32a5776["on_agent_finish()"]
  8b905d68_e902_a991_e9e6_2739f32a5776 -->|calls| 8c7035b3_98bd_e966_27d2_5caeb4874085
  94d4c742_e503_b3a2_5921_fb7e8162c1f3["on_agent_finish_common()"]
  8c7035b3_98bd_e966_27d2_5caeb4874085 -->|calls| 94d4c742_e503_b3a2_5921_fb7e8162c1f3
  8b905d68_e902_a991_e9e6_2739f32a5776["on_agent_finish()"]
  8c7035b3_98bd_e966_27d2_5caeb4874085 -->|calls| 8b905d68_e902_a991_e9e6_2739f32a5776
  style 8c7035b3_98bd_e966_27d2_5caeb4874085 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 236–241

    def on_agent_finish(
        self,
        *args: Any,
        **kwargs: Any,
    ) -> Any:
        self.on_agent_finish_common()

Domain

Subdomains

Called By

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 236.
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