Skip to content
masterclass Buddy

LangChain · Type Alias

AgentState

AgentState is the default state shape for an agent. It stores message history and can include remaining execution steps or custom fields.

Last updated

Syntax

AgentState()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • create_agent
  • state_schema
  • ToolRuntime
  • InMemorySaver
  • messages
  • remaining_steps

Source: AgentState | langgraph.prebuilt. Checked 2026-11-03.