LangGraph 1 · Building graphs
Use the built-in messages state
Use MessagesState when you only need a list of messages.
from langgraph.graph import MessagesState, StateGraph
builder = StateGraph(MessagesState)
Official LangGraph 1 documentation
LangGraph 1 · Building graphs
Use MessagesState when you only need a list of messages.
from langgraph.graph import MessagesState, StateGraph
builder = StateGraph(MessagesState)
Official LangGraph 1 documentation
Was this page helpful?