Skip to content
masterclass Buddy

LangGraph · Class

MessageGraph

MessageGraph is a StateGraph with one append-only list of messages as its complete state. Nodes read that list and return messages that are merged into it.

Last updated

Syntax

MessageGraph()

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

Subscribe
  • StateGraph
  • add_messages
  • compile
  • add_node
  • set_entry_point
  • set_finish_point

Source: MessageGraph | langgraph | LangChain Reference. Checked 2026-11-03.