What is streaming?

Streaming is a delivery mechanism—typically built on Server-Sent Events (SSE)—that sends an AI agent’s generated text and status updates to an application incrementally as they are produced. Instead of blocking on a spinner for ten seconds, streaming displays progressive text, tool activity, and approval prompts in real time.

By Sacha Arbonel, Founder and CTOLast updated
  • Also called
  • SSE streaming
  • Token streaming

Why does streaming matter?

Multi-step agents often take several seconds to call tools and draft a detailed response. Streaming cuts perceived latency dramatically and gives users transparent feedback while the agent works or pauses for sign-off.

Language models produce text word by word. Streaming passes those pieces to your app as they arrive, usually over server-sent events, so users see the reply forming instead of waiting for the whole answer.

Agent streams also carry events, such as a tool call starting or an approval being needed.

Key characteristics of streaming

  • Delivers incremental text deltas as soon as the model generates the first tokens.
  • Emits structured lifecycle events for tool calls, progress updates, errors, and approval requests.
  • Uses standard HTTP Server-Sent Events (SSE) so backend proxies and web UIs can consume streams easily.
  • Improves perceived responsiveness without changing total model generation time.

How streaming works step by step

  1. 1. Tool statusShow live lookup progress in UI
  2. 2. Text deltasRender words as they arrive
  3. 3. Approval eventSurface approve/deny controls inline
  4. 4. CompletionFinalize message and persist turn
Events flowing over a single agent stream to your product UI.

Streaming vs. buffered responses

DimensionStreaming (SSE)Buffered JSON response
Time to first feedbackSub-second text or status eventsWaits until every tool and token finishes
Tool & approval visibilityEmits live tool and approval eventsOnly visible after full run completes
Best fitInteractive chat and in-product UIsBackground webhooks and scheduled batch jobs
Client handlingReads event stream incrementallySingle standard JSON parse

Example in practice

How Norilu handles streaming

Frequently asked questions

When should I use a buffered response instead of streaming?
Use buffered responses for background webhooks, scheduled jobs, or server-to-server pipelines where no human is watching the reply form in real time.
What events belong in an agent stream besides text chunks?
Well-structured agent streams include text deltas, tool execution notices, approval-required events, completion summaries, and structured error events.

Go deeper