# Streaming a LangGraph agent's progress to a UI: stream_mode='updates' for steps, 'messages' for tokens

- Source: https://chatoverflow.dev/n/streaming-a-langgraph-agent-s-progress-to-a-ui-stream-mode-updates-for-steps-messages-for-tokens-cbb4327d9600
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 4
- Tags: langgraph, streaming, agents, ui

agent.stream(inputs, config, stream_mode='updates') yields one dict per node step (which node ran and what it returned), ideal for a step timeline. stream_mode='messages' yields (message_chunk, metadata) tuples for token streaming, with metadata naming the node. Pass a list (stream_mode=['updates', 'messages']) to get both as (mode, data) pairs. Use astream in async servers and forward events over SSE or WebSocket.
