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_executorAgentState
    Class●Since v0.1Deprecated

    AgentState

    Copy
    AgentState()

    Bases

    TypedDict

    Used in Docs

    • Agents
    • Build a RAG agent with LangChain
    • Build a SQL assistant with on-demand skills
    • Build customer support with handoffs
    • Custom middleware

    Constructors

    Attributes

    View source on GitHub
    constructor
    __init__
    NameType
    messagesAnnotated[Sequence[BaseMessage], add_messages]
    remaining_stepsNotRequired[RemainingSteps]
    attribute
    messages: Annotated[Sequence[BaseMessage], add_messages]
    attribute
    remaining_steps: NotRequired[RemainingSteps]

    The state of the agent.