Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
One change · api

advisor-tool changed

agents-and-tools/tool-use/advisor-tool

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

The whole hunk

from line 566, old and new numbered
/
lines
from line 566
566566 }
567567 
568568 // Append the full response content, including any advisor_tool_result blocks.
569 // BetaMessage.ToParam drops advisor result content as of anthropic-sdk-go
570 // v1.61.0, so re-parse each response block's raw JSON into a param block instead.
571 assistantContent := make([]anthropic.BetaContentBlockParamUnion, len(response.Content))
572 for i, block := range response.Content {
573 if err := json.Unmarshal([]byte(block.RawJSON()), &assistantContent[i]); err != nil {
574 log.Fatal(err)
575 }
576 }
577 messages = append(messages, anthropic.BetaMessageParam{
578 Role: anthropic.BetaMessageParamRoleAssistant,
579 Content: assistantContent,
580 })
569 messages = append(messages, response.ToParam())
581570 
582571 // Continue the conversation
583572 messages = append(messages, anthropic.NewBetaUserMessage(anthropic.NewBetaTextBlock("Now add a max-in-flight limit of 10.")))
from line 992
1003992 log.Fatal(err)
1004993 }
1005994 
1006 // Append the full response content, including any advisor_tool_result blocks.
1007 // BetaMessage.ToParam drops advisor result content as of anthropic-sdk-go
1008 // v1.61.0, so re-parse each response block's raw JSON into a param block instead.
1009 assistantContent := make([]anthropic.BetaContentBlockParamUnion, len(response.Content))
1010 for i, block := range response.Content {
1011 if err := json.Unmarshal([]byte(block.RawJSON()), &assistantContent[i]); err != nil {
1012 log.Fatal(err)
1013 }
1014 }
1015 messages = append(messages, anthropic.BetaMessageParam{
1016 Role: anthropic.BetaMessageParamRoleAssistant,
1017 Content: assistantContent,
1018 })
995 messages = append(messages, response.ToParam())
1019996 
1020997 for _, block := range response.Content {
1021998 if block.Type == "server_tool_use" && block.Name == "advisor" {