streaming changedbuild-with-claude/streaming
Nearest release: v2.1.296, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+2added
Lines−2removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits16to this page, all time
The whole hunk
from line 1, old and new numbered
/
from line 1
11---
22title: Streaming messages
33url: https://platform.claude.com/docs/en/build-with-claude/streaming
4description: Stream Messages API responses incrementally with server-sent events, including text, tool use, and extended thinking deltas.
4description: Stream Messages API responses incrementally with server-sent events, including text, tool use, and thinking deltas.
55---
66
77When creating a Message, you can set `"stream": true` to incrementally stream the response using [server-sent events](https://developer.mozilla.org/en-US/Web/API/Server-sent%5Fevents/Using%5Fserver-sent%5Fevents) (SSE).
from line 1507
15071507### Error recovery best practices
15081508
150915091. **Use SDK features:** Leverage the SDK's built-in message accumulation and error handling capabilities.
15102. **Handle content types:** Be aware that messages can contain multiple content blocks (`text`, `tool_use`, `thinking`). Tool use and extended thinking blocks cannot be partially recovered. You can resume streaming from the most recent text block.
15102. **Handle content types:** Be aware that messages can contain multiple content blocks (`text`, `tool_use`, `thinking`). Tool use and thinking blocks cannot be partially recovered. You can resume streaming from the most recent text block.
15111511
15121512## Next steps
15131513
No line in this hunk matches that.