Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

event-deltas changedmanaged-agents/event-deltas

Nearest release: v2.1.301, published 5 hours before 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+12added
Lines−15removed
From line 107 where the diff opens
First seen 8 Oct 2026 this site's first read of the page
Recorded edits12to this page, all time

The whole hunk

from line 107, old and new numbered
/
lines
from line 107
107107 
108108The following examples opt in to `agent.message` previews and reconcile them with the buffered event:
109109 
110<CodeGroup>
110<CodeGroup exclude="shell:CLI">
111111 ```bash cURL
112112 # Opt in to agent.message previews via event_deltas, then accumulate manually.
113113 exec {stream}< <(
from line 125
125125 -H "anthropic-version: 2023-06-01" \
126126 -H "anthropic-beta: managed-agents-2026-04-01" \
127127 -H "content-type: application/json" \
128 -d @- >/dev/null <<'EOF'
129 {
130 "events": [
131 {
132 "type": "user.message",
133 "content": [{"type": "text", "text": "In one short sentence, describe what an event delta is."}]
134 }
135 ]
136 }
137 EOF
128 -d '{
129 "events": [
130 {
131 "type": "user.message",
132 "content": [{"type": "text", "text": "In one short sentence, describe what an event delta is."}]
133 }
134 ]
135 }' >/dev/null
138136 
139137 # Accumulate deltas keyed by (message id, content index); the final
140138 # agent.message carries the full text, so it replaces every preview for that id.
from line 173
175173 exec {stream}<&-
176174 ```
177175 
178 ```bash CLI
179 # This workflow does not translate well to a one-off shell command.
180 # Use one of the SDK examples in this code group instead.
181 ```
176 <CodeGroupItem language="CLI">
177 This workflow needs more logic than a single shell command. Use the [Claude SDK](https://platform.claude.com/docs/en/cli-sdks-libraries/overview) to run it.
178 </CodeGroupItem>
182179 
183180 ```python Python
184181 # Preview snapshots, keyed by event id. accumulate_managed_agents_event folds each
Feedback