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
  33f353cc_c0e2_ecd0_bc04_7551f5aaa193["on_agent_finish()"]
  b1da79c3_cb84_0799_b179_c8776facb43e["FakeAsyncCallbackHandler"]
  33f353cc_c0e2_ecd0_bc04_7551f5aaa193 -->|defined in| b1da79c3_cb84_0799_b179_c8776facb43e
  69bf7c00_1d0e_1d48_af97_4ef50386ba2c["on_agent_finish()"]
  69bf7c00_1d0e_1d48_af97_4ef50386ba2c -->|calls| 33f353cc_c0e2_ecd0_bc04_7551f5aaa193
  ec77cab9_9911_ca1a_5cb3_540089e4d74d["on_agent_finish_common()"]
  33f353cc_c0e2_ecd0_bc04_7551f5aaa193 -->|calls| ec77cab9_9911_ca1a_5cb3_540089e4d74d
  69bf7c00_1d0e_1d48_af97_4ef50386ba2c["on_agent_finish()"]
  33f353cc_c0e2_ecd0_bc04_7551f5aaa193 -->|calls| 69bf7c00_1d0e_1d48_af97_4ef50386ba2c
  style 33f353cc_c0e2_ecd0_bc04_7551f5aaa193 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/openai/tests/unit_tests/fake/callbacks.py lines 265–266

    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/partners/openai/tests/unit_tests/fake/callbacks.py.
Where is on_agent_finish() defined?
on_agent_finish() is defined in libs/partners/openai/tests/unit_tests/fake/callbacks.py at line 265.
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