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

overview changedagents-and-tools/tool-use/overview

Nearest release: v2.1.307, published 4 hours after 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+6added
Lines−6removed
From line 60 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits17to this page, all time

The whole hunk

from line 60, old and new numbered
/
lines
from line 60
6060 Model = Model.ClaudeOpus5_5,
6161 MaxTokens = 1024,
6262 Tools = [new ToolUnion(new WebSearchTool20260209())],
63 Messages = [new() { Role = Role.User, Content = "What's the latest on the Mars rover?" }]
63 Messages = [new UserMessageParam { Content = "What's the latest on the Mars rover?" }]
6464 };
6565 
6666 var message = await client.Messages.Create(parameters);
from line 298
298298 MaxTokens = 1024,
299299 Tools = tools,
300300 ToolChoice = toolChoice,
301 Messages = [new() { Role = Role.User, Content = userPrompt }],
301 Messages = [new UserMessageParam { Content = userPrompt }],
302302 });
303303 ToolUseBlock? toolUse = null;
304304 foreach (var block in response.Content)
from line 329
329329 ToolChoice = toolChoice,
330330 Messages =
331331 [
332 new() { Role = Role.User, Content = userPrompt },
333 new() { Role = Role.Assistant, Content = response.Content.Select(block => new ContentBlockParam(block.Json)).ToList() },
334 new() { Role = Role.User, Content = new MessageParamContent(toolResults) },
332 new UserMessageParam { Content = userPrompt },
333 new AssistantMessageParam { Content = response.Content.Select(block => new ContentBlockParam(block.Json)).ToList() },
334 new UserMessageParam { Content = toolResults },
335335 ],
336336 });
337337 
from line 479
479479 .toolChoice(toolChoice)
480480 .addUserMessage(userPrompt)
481481 .addMessage(response)
482 .addUserMessageOfBlockParams(List.of(ContentBlockParam.ofToolResult(
482 .addUserMessageOfContentBlockParams(List.of(ContentBlockParam.ofToolResult(
483483 ToolResultBlockParam.builder()
484484 .toolUseId(toolUse.id())
485485 .content(weather)
Feedback