Follow Discord
Sweep 02 Oct 2026 · 18:55Z Build v2.1.288 509 read Stable v2.1.285 Latest v2.1.287 Next v2.1.288 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

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

Nearest release: v2.1.287, published 4 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+3added
Lines−3removed
From line 1,048 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits14to this page, all time

The whole hunk

from line 1048, old and new numbered
/
lines
from line 1048
10481048 var events = client.beta().sessions().events().list(
10491049 session.id(),
10501050 EventListParams.builder()
1051 .addType("agent.tool_use")
1052 .addType("agent.tool_result")
1051 .addType(BetaManagedAgentsSessionEventType.AGENT_TOOL_USE)
1052 .addType(BetaManagedAgentsSessionEventType.AGENT_TOOL_RESULT)
10531053 .build());
10541054 for (var event : events.data()) {
10551055 event.agentToolUse().ifPresent(toolUse ->
from line 2853
28532853* **Check session events:** Session errors are conveyed through the `session.error` event
28542854* **Review tool results:** Tool execution failures often explain unexpected agent behavior
28552855* **Track token usage:** Monitor token consumption to optimize prompts and reduce costs
2856* **Use system prompts:** Add logging instructions to the system prompt to make the agent explain its reasoning
2856* **Use system prompts:** Add logging instructions to the system prompt so the agent summarizes what it did and what it found
28572857* **Troubleshoot previews:** If a stream that opts in to event deltas doesn't behave as you expect, see [Troubleshoot previews](https://platform.claude.com/docs/en/managed-agents/events-and-streaming#troubleshoot-previews)
28582858 
Feedback