LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    LangGraph Checkpoint
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph.prebuiltchat_agent_executor
    Module●Since v0.1

    chat_agent_executor

    Attributes

    attribute
    StateSchema
    attribute
    StateSchemaType: type[StateSchema]
    attribute
    PROMPT_RUNNABLE_NAME: str
    attribute
    create_tool_calling_executor: create_react_agent

    Functions

    deprecatedfunction
    create_react_agent

    Creates an agent graph that calls tools in a loop until a stopping condition is met.

    Warning

    This function is deprecated in favor of create_agent from the langchain package, which provides an equivalent agent factory with a flexible middleware system. For migration guidance, see Migrating from LangGraph v0.

    Classes

    class
    ToolCallWithContext

    ToolCall with additional context for graph state.

    This is an internal data structure meant to help the ToolNode accept tool calls with additional context (e.g. state) when dispatched using the Send API.

    The Send API is used in create_agent to distribute tool calls in parallel and support human-in-the-loop workflows where graph execution may be paused for an indefinite time.

    class
    ToolNode

    A node for executing tools in LangGraph workflows.

    Handles tool execution patterns including function calls, state injection, persistent storage, and control flow. Manages parallel execution, error handling.

    Use ToolNode when building custom workflows that require fine-grained control over tool execution—for example, custom routing logic, specialized error handling, or non-standard agent architectures.

    For standard ReAct-style agents, use create_agent instead. It uses ToolNode internally with sensible defaults for the agent loop, conditional routing, and error handling.

    deprecatedclass
    AgentState

    The state of the agent.

    deprecatedclass
    AgentStatePydantic

    The state of the agent.

    deprecatedclass
    AgentStateWithStructuredResponse

    The state of the agent with a structured response.

    deprecatedclass
    AgentStateWithStructuredResponsePydantic

    The state of the agent with a structured response.

    Type Aliases

    typeAlias
    StructuredResponse
    typeAlias
    StructuredResponseSchema
    typeAlias
    Prompt
    View source on GitHub