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

self-hosted-sandboxes-custom-tools changedmanaged-agents/self-hosted-sandboxes-custom-tools

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+5added
Lines−4removed
From line 172 where the diff opens
First seen 2 Oct 2026 this site's first read of the page
Recorded edits8to this page, all time

The whole hunk

from line 172, old and new numbered
/
lines
from line 172
172172 log.Fatalf("worker: %v", err)
173173 }
174174 }
175 
176175 ```
177176 
178177 <CodeGroupItem language="Java">
from line 222
223222 from anthropic import AsyncAnthropic
224223 from anthropic.types.beta import BetaManagedAgentsCustomToolParams
225224 from mcp import ClientSession, types
225 
226226 # Requires mcp >= 1.24, which renamed streamablehttp_client to streamable_http_client.
227227 from mcp.client.streamable_http import streamable_http_client
228228 
from line 456
456456 }
457457 fmt.Println(agent.ID)
458458 }
459 
460459 ```
461460 
462461 ```java Java
from line 608
609608 from anthropic.lib.tools.agent_toolset import beta_agent_toolset_20260401
610609 from anthropic.lib.tools.mcp import async_mcp_tool
611610 from mcp import ClientSession
611 
612612 # Requires mcp >= 1.24, which renamed streamablehttp_client to streamable_http_client.
613613 from mcp.client.streamable_http import streamable_http_client
614614 
from line 623
623623 # result instead of a stalled call.
624624 async with (
625625 streamable_http_client(MCP_SERVER_URL) as (read, write, _),
626 ClientSession(read, write, read_timeout_seconds=timedelta(seconds=60)) as mcp_session,
626 ClientSession(
627 read, write, read_timeout_seconds=timedelta(seconds=60)
628 ) as mcp_session,
627629 AsyncAnthropic(auth_token=environment_key) as client,
628630 ):
629631 await mcp_session.initialize()
from line 748
746748 log.Fatalf("worker: %v", err)
747749 }
748750 }
749 
750751 ```
751752 
752753 <CodeGroupItem language="Java">
Feedback