migration changedmanaged-agents/migration
Nearest release: v2.1.309, published under an hour 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+1added
Lines−12removed
From line
349
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits23to this page, all time
The whole hunk
from line 349, old and new numbered
/
from line 349
349349 ID: anthropic.BetaManagedAgentsModelClaudeOpus5_5,
350350 },
351351 Tools: []anthropic.BetaAgentNewParamsToolUnion{{
352 OfAgentToolset20260401: &anthropic.BetaManagedAgentsAgentToolset20260401Params{
353 Type: anthropic.BetaManagedAgentsAgentToolset20260401ParamsTypeAgentToolset20260401,
354 },
352 OfAgentToolset20260401: &anthropic.BetaManagedAgentsAgentToolset20260401Params{},
355353 }},
356354 })
357355 if err != nil {
from line 359
361359 session, err := client.Beta.Sessions.New(ctx, anthropic.BetaSessionNewParams{
362360 Agent: anthropic.BetaSessionNewParamsAgentUnion{
363361 OfBetaManagedAgentsAgents: &anthropic.BetaManagedAgentsAgentParams{
364 Type: anthropic.BetaManagedAgentsAgentParamsTypeAgent,
365362 ID: agent.ID,
366363 Version: anthropic.Int(agent.Version),
367364 },
from line 375
378375 _, err = client.Beta.Sessions.Events.Send(ctx, session.ID, anthropic.BetaSessionEventSendParams{
379376 Events: []anthropic.BetaManagedAgentsEventParamsUnion{{
380377 OfUserMessage: &anthropic.BetaManagedAgentsUserMessageEventParams{
381 Type: anthropic.BetaManagedAgentsUserMessageEventParamsTypeUserMessage,
382378 Content: []anthropic.BetaManagedAgentsUserMessageEventParamsContentUnion{{
383379 OfText: &anthropic.BetaManagedAgentsTextBlockParam{
384 Type: anthropic.BetaManagedAgentsTextBlockTypeText,
385380 Text: task,
386381 },
387382 }},
from line 848
853848 System: anthropic.String("You are a concise weather assistant."),
854849 Tools: []anthropic.BetaAgentNewParamsToolUnion{{
855850 OfCustom: &anthropic.BetaManagedAgentsCustomToolParams{
856 Type: anthropic.BetaManagedAgentsCustomToolParamsTypeCustom,
857851 Name: "get_weather",
858852 Description: "Get the current weather for a city.",
859853 InputSchema: anthropic.BetaManagedAgentsCustomToolInputSchemaParam{
from line 881
887881 session, err := client.Beta.Sessions.New(ctx, anthropic.BetaSessionNewParams{
888882 Agent: anthropic.BetaSessionNewParamsAgentUnion{
889883 OfBetaManagedAgentsAgents: &anthropic.BetaManagedAgentsAgentParams{
890 Type: anthropic.BetaManagedAgentsAgentParamsTypeAgent,
891884 ID: agent.ID,
892885 Version: anthropic.Int(agent.Version),
893886 },
from line 901
908901 _, err = client.Beta.Sessions.Events.Send(ctx, session.ID, anthropic.BetaSessionEventSendParams{
909902 Events: []anthropic.BetaManagedAgentsEventParamsUnion{{
910903 OfUserMessage: &anthropic.BetaManagedAgentsUserMessageEventParams{
911 Type: anthropic.BetaManagedAgentsUserMessageEventParamsTypeUserMessage,
912904 Content: []anthropic.BetaManagedAgentsUserMessageEventParamsContentUnion{{
913905 OfText: &anthropic.BetaManagedAgentsTextBlockParam{
914 Type: anthropic.BetaManagedAgentsTextBlockTypeText,
915906 Text: "What's the weather in Tokyo?",
916907 },
917908 }},
from line 929
938929 if _, err := client.Beta.Sessions.Events.Send(ctx, session.ID, anthropic.BetaSessionEventSendParams{
939930 Events: []anthropic.BetaManagedAgentsEventParamsUnion{{
940931 OfUserCustomToolResult: &anthropic.BetaManagedAgentsUserCustomToolResultEventParams{
941 Type: anthropic.BetaManagedAgentsUserCustomToolResultEventParamsTypeUserCustomToolResult,
942932 CustomToolUseID: toolUse.ID,
943933 Content: []anthropic.BetaManagedAgentsUserCustomToolResultEventParamsContentUnion{{
944934 OfText: &anthropic.BetaManagedAgentsTextBlockParam{
945 Type: anthropic.BetaManagedAgentsTextBlockTypeText,
946935 Text: result,
947936 },
948937 }},
No line in this hunk matches that.