Home / Function/ on_agent_finish_common() — langchain Function Reference

on_agent_finish_common() — langchain Function Reference

Architecture documentation for the on_agent_finish_common() function in fake_callback_handler.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  94d4c742_e503_b3a2_5921_fb7e8162c1f3["on_agent_finish_common()"]
  ea671d84_7d08_f3b7_3eb4_b59396ea8e29["BaseFakeCallbackHandlerMixin"]
  94d4c742_e503_b3a2_5921_fb7e8162c1f3 -->|defined in| ea671d84_7d08_f3b7_3eb4_b59396ea8e29
  8c7035b3_98bd_e966_27d2_5caeb4874085["on_agent_finish()"]
  8c7035b3_98bd_e966_27d2_5caeb4874085 -->|calls| 94d4c742_e503_b3a2_5921_fb7e8162c1f3
  8b905d68_e902_a991_e9e6_2739f32a5776["on_agent_finish()"]
  8b905d68_e902_a991_e9e6_2739f32a5776 -->|calls| 94d4c742_e503_b3a2_5921_fb7e8162c1f3
  style 94d4c742_e503_b3a2_5921_fb7e8162c1f3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py lines 92–94

    def on_agent_finish_common(self) -> None:
        self.agent_ends += 1
        self.ends += 1

Domain

Subdomains

Frequently Asked Questions

What does on_agent_finish_common() do?
on_agent_finish_common() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py.
Where is on_agent_finish_common() defined?
on_agent_finish_common() is defined in libs/langchain/tests/unit_tests/callbacks/fake_callback_handler.py at line 92.
What calls on_agent_finish_common()?
on_agent_finish_common() is called by 2 function(s): on_agent_finish, on_agent_finish.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free