Home / Function/ on_agent_action() — langchain Function Reference

on_agent_action() — langchain Function Reference

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

Function python LangChainCore Runnables calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  1b6e8a8e_6be1_3f35_99c5_71e77d7423e6["on_agent_action()"]
  10348507_70e9_81e4_3fb4_4c803e612737["FakeAsyncCallbackHandler"]
  1b6e8a8e_6be1_3f35_99c5_71e77d7423e6 -->|defined in| 10348507_70e9_81e4_3fb4_4c803e612737
  17810879_e7af_7535_f499_665d6161a0ee["on_agent_action()"]
  17810879_e7af_7535_f499_665d6161a0ee -->|calls| 1b6e8a8e_6be1_3f35_99c5_71e77d7423e6
  daf1e708_211b_cd2c_a40d_aefa987d3300["on_agent_action_common()"]
  1b6e8a8e_6be1_3f35_99c5_71e77d7423e6 -->|calls| daf1e708_211b_cd2c_a40d_aefa987d3300
  17810879_e7af_7535_f499_665d6161a0ee["on_agent_action()"]
  1b6e8a8e_6be1_3f35_99c5_71e77d7423e6 -->|calls| 17810879_e7af_7535_f499_665d6161a0ee
  style 1b6e8a8e_6be1_3f35_99c5_71e77d7423e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/groq/tests/unit_tests/fake/callbacks.py lines 375–380

    async def on_agent_action(
        self,
        *args: Any,
        **kwargs: Any,
    ) -> None:
        self.on_agent_action_common()

Domain

Subdomains

Called By

Frequently Asked Questions

What does on_agent_action() do?
on_agent_action() is a function in the langchain codebase, defined in libs/partners/groq/tests/unit_tests/fake/callbacks.py.
Where is on_agent_action() defined?
on_agent_action() is defined in libs/partners/groq/tests/unit_tests/fake/callbacks.py at line 375.
What does on_agent_action() call?
on_agent_action() calls 2 function(s): on_agent_action, on_agent_action_common.
What calls on_agent_action()?
on_agent_action() is called by 1 function(s): on_agent_action.

Analyze Your Own Codebase

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

Try Supermodel Free