Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Process results programmatically changedagents-and-tools/tool-use/programmatic-tool-calling

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+4added
Lines−6removed
From line 878 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits18to this page, all time

The whole hunk

from line 878, old and new numbered
/
lines
from line 878
878878 },
879879 Messages: []anthropic.MessageParam{
880880 anthropic.NewUserMessage(anthropic.NewTextBlock("Query customer purchase history from the last quarter and identify our top 5 customers by revenue")),
881 {
882 Role: anthropic.MessageParamRoleAssistant,
881 {OfAssistant: &anthropic.AssistantMessageParam{
883882 Content: []anthropic.ContentBlockParamUnion{
884883 anthropic.NewTextBlock("I'll query the purchase history and analyze the results."),
885884 {OfServerToolUse: &anthropic.ServerToolUseBlockParam{
from line 897
898897 },
899898 }},
900899 },
901 },
902 {
903 Role: anthropic.MessageParamRoleUser,
900 }},
901 {OfUser: &anthropic.UserMessageParam{
904902 Content: []anthropic.ContentBlockParamUnion{
905903 {OfToolResult: &anthropic.ToolResultBlockParam{
906904 ToolUseID: "toolu_def456",
from line 909
911909 },
912910 }},
913911 },
914 },
912 }},
915913 },
916914 // Same tools array as the original request
917915 Tools: []anthropic.ToolUnionParam{
Feedback