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
  17810879_e7af_7535_f499_665d6161a0ee["on_agent_action()"]
  97fbbdab_62ae_4a18_0986_15714bc2ccda["FakeCallbackHandler"]
  17810879_e7af_7535_f499_665d6161a0ee -->|defined in| 97fbbdab_62ae_4a18_0986_15714bc2ccda
  1b6e8a8e_6be1_3f35_99c5_71e77d7423e6["on_agent_action()"]
  1b6e8a8e_6be1_3f35_99c5_71e77d7423e6 -->|calls| 17810879_e7af_7535_f499_665d6161a0ee
  daf1e708_211b_cd2c_a40d_aefa987d3300["on_agent_action_common()"]
  17810879_e7af_7535_f499_665d6161a0ee -->|calls| daf1e708_211b_cd2c_a40d_aefa987d3300
  1b6e8a8e_6be1_3f35_99c5_71e77d7423e6["on_agent_action()"]
  17810879_e7af_7535_f499_665d6161a0ee -->|calls| 1b6e8a8e_6be1_3f35_99c5_71e77d7423e6
  style 17810879_e7af_7535_f499_665d6161a0ee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/groq/tests/unit_tests/fake/callbacks.py lines 219–224

    def on_agent_action(
        self,
        *args: Any,
        **kwargs: Any,
    ) -> Any:
        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 219.
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