The
version="v3" flag is temporarily required to opt in to this stream behavior. The new behavior will become the default stream version in the next major LangGraph release.What Event Streaming provides
The run stream exposes typed projections over one underlying event flow:
Multiple consumers can read these projections concurrently. Reading
run.messages does not consume events needed by run.values, run.subgraphs, or run.output.
Stream protocol events
Use the run object itself when you want the raw protocol event stream:method, a monotonic seq number, and params containing namespace, timestamp, optional node, and channel-specific data.
The
messages channel models output as content blocks. This makes token streaming, reasoning blocks, tool-call blocks, and multimodal content explicit without requiring provider-specific formats in application code.
Add custom transformers
Stream transformers are the projection layer in Event Streaming. They observe protocol events, keep their own state, and expose derived views of a run such as progress events, artifacts, token totals, tool activity, or third-party protocol messages. A transformer creates a projection ininit(), observes each event in process(), and finalizes or fails the projection when the run completes.
Use StreamChannel
StreamChannel is the projection primitive for custom streaming data. It gives in-process consumers an iterable stream, and it can also forward pushed values to remote SDK clients when the channel has a protocol name.
Named channel payloads must be serializable because they are also emitted as
custom:<name> protocol events. Keep promises, async iterables, class instances, and other in-process handles local.
Related
- Streaming cookbook shows runnable Event Streaming examples.
- LangGraph Streaming covers lower-level stream modes.
- LangChain Event Streaming covers the agent streaming surface built on LangGraph.
- Deep Agents Event Streaming covers delegated subagent streams.
Connect these docs to Claude, VSCode, and more via MCP for real-time answers.

