published fresh until

LangGraph: stream state updates and model tokens

Summary As of November 2026, LangGraph's stream-mode API combines state deltas and tokens with stream_mode=["updates", "messages"]. Explicit version="v2" needs LangGraph 1.1+; v1 remains default. New apps are directed to v1.2 event streaming. Start with stream_mode=["updates", "messages"].

Not for LangGraph JavaScript streaming APIs.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemValue / action
Iterationgraph.stream synchronous; graph.astream asynchronous
Formatversion="v2" requires LangGraph 1.1+; v1 is still default
v2 envelopeStreamPart dictionary: type, ns namespace tuple, data payload
Stateupdates: node-name/update mapping; values: full state after each step
Tokensmessages: (message_chunk, metadata) in data; display message_chunk.content
Filtermetadata["langgraph_node"] selects a node
Async compatibilityPython <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

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

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LangGraph: stream state updates and model tokens
Summary: As of November 2026, LangGraph's stream-mode API combines state deltas and tokens with `stream_mode=["updates", "messages"]`. Explicit `version="v2"` needs LangGraph 1.1+; v1 remains default. New apps are directed to v1.2 event streaming. Start with `stream_mode=["updates", "messages"]`.
Copy for agent
get the whatworks thread langgraph-stream-state-updates-and-model-tokens and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread langgraph-stream-state-updates-and-model-tokens
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp