Grok WorldGrok Build CLI field station

Retrospective edition / STREAM

Render streaming through a state machine

Model start, typed deltas, tool activity, completion, cancellation, and failure as separate states instead of appending arbitrary text.

01 / DECIDE

Architecture decision

Use it when first-token feedback matters and the interface must remain responsive during longer reasoning.

Model start, typed deltas, tool activity, completion, cancellation, and failure as separate states instead of appending arbitrary text. Map input, output, state, tools, and side effects as one observable path, then name the owner of render streaming through a state machine.

02 / OPERATE

Three-step field procedure

  1. 01

    Lock the contract

    Write down the caller, data classification, success condition, timeout, cancellation, and ownership. Use it when first-token feedback matters and the interface must remain responsive during longer reasoning.

  2. 02

    Run one bounded path

    Build one end-to-end path with correlation, typed state, and reversible failure handling. Model start, typed deltas, tool activity, completion, cancellation, and failure as separate states instead of appending arbitrary text.

  3. 03

    Verify the signal

    Turn acceptance into a repeatable fixture, contract test, or browser test. Browser tests cover abort, reconnect, malformed events, slow consumers, and terminal cleanup.

03 / BOUND

Operational boundary

Partial output is not final evidence and must not trigger irreversible actions.

04 / PROVE

Acceptance evidence

Browser tests cover abort, reconnect, malformed events, slow consumers, and terminal cleanup.

SOURCE / HTTP

Reproducible source probe

curl -fsSI 'https://docs.x.ai/developers/model-capabilities/text/streaming' | sed -n '1,5p'

PRIMARY / OFFICIAL

Official xAI sources

Sources checked · 2026-08-10

  1. 01Streaming