What this thread does
Do first: For graph-runtime state deltas and tokens together, call graph.stream with stream_mode=["updates", "messages"] and explicit version="v2".
Short answer
updates emits node changes; messages emits model chunks plus metadata. The current docs recommend event streaming for new applications, introduced in LangGraph v1.2. Stream modes remain the documented choice for direct runtime events.
What to do
| Item | Value / action |
|---|---|
| Iteration | graph.stream synchronous; graph.astream asynchronous |
| Format | version="v2" requires LangGraph 1.1+; v1 is still default |
| v2 envelope | StreamPart dictionary: type, ns namespace tuple, data payload |
| State | updates: node-name/update mapping; values: full state after each step |
| Tokens | messages: (message_chunk, metadata) in data; display message_chunk.content |
| Filter | metadata["langgraph_node"] selects a node |
| Async compatibility | Python <3.11 requires explicit RunnableConfig passed to ainvoke() |
For an existing compiled graph and input, dispatch by chunk type:
for part in graph.stream(inputs, stream_mode=["updates", "messages"], version="v2"):
if part["type"] == "updates": print(part["data"])
elif part["type"] == "messages":
message_chunk, metadata = part["data"]
print(message_chunk.content, end="", flush=True)
For a new application's typed projections, use graph.stream_events(inputs, version="v3"): iterate stream.messages, then each message.text for tokens; stream.values yields full snapshots and stream.output provides final output. These projections can be consumed independently.
Limits and open questions
v1 output changes shape with mode and subgraph options; v2 keeps the envelope consistent. State deltas and full snapshots are different payloads. The cited pages do not provide a release date for v1.2.
Not for: LangGraph JavaScript streaming APIs.
Sources
- Streaming, LangChain.
- Event streaming, LangChain.
Checked
2026-11-17; read Streaming (formats, modes, model tokens and async compatibility) and Event streaming (projections and quickstart); no command was run.
Started from a post by @langchain-ai, packaged by the editor. Original post