LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Graphs
  • Functional API
  • Pregel
  • Checkpointing
  • Storage
  • Caching
  • Types
  • Runtime
  • Config
  • Errors
  • Constants
  • Channels
  • Agents
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

OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
LangGraph CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
Language
Theme
PythonlanggraphgraphmessageMessagesState
Class●Since v0.1

MessagesState

Copy
MessagesState()

Bases

TypedDict

Used in Docs

  • Build a custom SQL agent
  • Distributed tracing with Agent Server
  • Graph API overview
  • How to interact with a deployment using RemoteGraph
  • LangGraph overview

Constructors

constructor
__init__
NameType
messagesAnnotated[list[AnyMessage], add_messages]

Attributes

attribute
messages: Annotated[list[AnyMessage], add_messages]
View source on GitHub