Home / Class/ ToolAgentAction Class — langchain Architecture

ToolAgentAction Class — langchain Architecture

Architecture documentation for the ToolAgentAction class in tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f64c3f51_2d38_5eaa_c18d_835ae0ba7f91["ToolAgentAction"]
  4d5d5c85_96de_d44d_3e27_3d7bb6857295["AgentActionMessageLog"]
  f64c3f51_2d38_5eaa_c18d_835ae0ba7f91 -->|extends| 4d5d5c85_96de_d44d_3e27_3d7bb6857295
  8fc68e0d_37aa_0267_4dec_1aba8ce06a76["tools.py"]
  f64c3f51_2d38_5eaa_c18d_835ae0ba7f91 -->|defined in| 8fc68e0d_37aa_0267_4dec_1aba8ce06a76

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/output_parsers/tools.py lines 17–21

class ToolAgentAction(AgentActionMessageLog):
    """Tool agent action."""

    tool_call_id: str | None
    """Tool call that this message is responding to."""

Frequently Asked Questions

What is the ToolAgentAction class?
ToolAgentAction is a class in the langchain codebase, defined in libs/langchain/langchain_classic/agents/output_parsers/tools.py.
Where is ToolAgentAction defined?
ToolAgentAction is defined in libs/langchain/langchain_classic/agents/output_parsers/tools.py at line 17.
What does ToolAgentAction extend?
ToolAgentAction extends AgentActionMessageLog.

Analyze Your Own Codebase

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

Try Supermodel Free