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

events-and-streaming changedmanaged-agents/events-and-streaming

Nearest release: v2.1.304, published 6 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+27added
Lines−27removed
From line 566 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits29to this page, all time

The whole hunk

from line 566, old and new numbered
/
lines
from line 566
566566 content: [
567567 {
568568 type: "text",
569 text: "Analyze the performance of the sort function in utils.py",
570 },
571 ],
572 },
573 ],
569 text: "Analyze the performance of the sort function in utils.py"
570 }
571 ]
572 }
573 ]
574574 });
575575 ```
576576 
from line 742
742742 {
743743 type: "user.custom_tool_result",
744744 custom_tool_use_id: event.id,
745 content: [{ type: "text", text: result }],
746 },
747 ],
745 content: [{ type: "text", text: result }]
746 }
747 ]
748748 });
749749 break;
750750 }
from line 977
977977 {
978978 type: "user.tool_confirmation",
979979 tool_use_id: eventId,
980 result: "allow",
981 },
982 ],
980 result: "allow"
981 }
982 ]
983983 });
984984 }
985985 }
from line 1190
11901190 content: [
11911191 {
11921192 type: "text",
1193 text: "Now run the tests against the changes you made earlier.",
1194 },
1195 ],
1196 },
1197 ],
1193 text: "Now run the tests against the changes you made earlier."
1194 }
1195 ]
1196 }
1197 ]
11981198 });
11991199 ```
12001200 
from line 1366
13661366 content: [
13671367 {
13681368 type: "text",
1369 text: "Instead, focus on fixing the bug in line 42.",
1370 },
1371 ],
1372 },
1373 ],
1369 text: "Instead, focus on fixing the bug in line 42."
1370 }
1371 ]
1372 }
1373 ]
13741374 });
13751375 ```
13761376 
from line 1589
15891589 
15901590 ```typescript TypeScript
15911591 const events = await client.beta.sessions.events.list(session.id, {
1592 types: ["agent.tool_use", "agent.tool_result"],
1592 types: ["agent.tool_use", "agent.tool_result"]
15931593 });
15941594 for (const event of events.data) {
15951595 console.log(`[${event.type}] ${event.processed_at}`);
from line 1717
17171717 content: [
17181718 {
17191719 type: "text",
1720 text: "The user's current timezone is America/New_York.",
1721 },
1722 ],
1723 },
1724 ],
1720 text: "The user's current timezone is America/New_York."
1721 }
1722 ]
1723 }
1724 ]
17251725 });
17261726 ```
17271727 
Feedback