Home / Function/ on_agent_finish() — langchain Function Reference

on_agent_finish() — langchain Function Reference

Architecture documentation for the on_agent_finish() function in callbacks.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  a6d38ee2_39f5_972a_e197_195d247b3bb3["on_agent_finish()"]
  420de797_6be5_1482_0203_e7dd66c71fd0["FakeAsyncCallbackHandler"]
  a6d38ee2_39f5_972a_e197_195d247b3bb3 -->|defined in| 420de797_6be5_1482_0203_e7dd66c71fd0
  7618785f_3453_9e6f_c34e_8b4fdb38dda0["on_agent_finish()"]
  7618785f_3453_9e6f_c34e_8b4fdb38dda0 -->|calls| a6d38ee2_39f5_972a_e197_195d247b3bb3
  6230a9e5_2963_e3b0_b959_a5b18f7601af["on_agent_finish_common()"]
  a6d38ee2_39f5_972a_e197_195d247b3bb3 -->|calls| 6230a9e5_2963_e3b0_b959_a5b18f7601af
  7618785f_3453_9e6f_c34e_8b4fdb38dda0["on_agent_finish()"]
  a6d38ee2_39f5_972a_e197_195d247b3bb3 -->|calls| 7618785f_3453_9e6f_c34e_8b4fdb38dda0
  style a6d38ee2_39f5_972a_e197_195d247b3bb3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/fake/callbacks.py lines 413–418

    async def on_agent_finish(
        self,
        *args: Any,
        **kwargs: Any,
    ) -> None:
        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/core/tests/unit_tests/fake/callbacks.py.
Where is on_agent_finish() defined?
on_agent_finish() is defined in libs/core/tests/unit_tests/fake/callbacks.py at line 413.
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