Home / Function/ __init__() — langchain Function Reference

__init__() — langchain Function Reference

Architecture documentation for the __init__() function in agents.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  15bd80ad_b7c6_fd01_43ad_15010bf89a51["__init__()"]
  53553bfd_1550_1d23_d247_d865657bb39e["AgentAction"]
  15bd80ad_b7c6_fd01_43ad_15010bf89a51 -->|defined in| 53553bfd_1550_1d23_d247_d865657bb39e
  style 15bd80ad_b7c6_fd01_43ad_15010bf89a51 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/langchain_core/agents.py lines 71–79

    def __init__(self, tool: str, tool_input: str | dict, log: str, **kwargs: Any):
        """Create an `AgentAction`.

        Args:
            tool: The name of the tool to execute.
            tool_input: The input to pass in to the `Tool`.
            log: Additional information to log about the action.
        """
        super().__init__(tool=tool, tool_input=tool_input, log=log, **kwargs)

Domain

Subdomains

Frequently Asked Questions

What does __init__() do?
__init__() is a function in the langchain codebase, defined in libs/core/langchain_core/agents.py.
Where is __init__() defined?
__init__() is defined in libs/core/langchain_core/agents.py at line 71.

Analyze Your Own Codebase

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

Try Supermodel Free