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

define-tools changedagents-and-tools/tool-use/define-tools

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+2added
Lines−6removed
From line 338 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 338, old and new numbered
/
lines
from line 338
338338 ],
339339 }),
340340 ],
341 Messages = [
342 new() { Role = Role.User, Content = "What's the weather like in San Francisco?" }
343 ]
341 Messages = [new UserMessageParam { Content = "What's the weather like in San Francisco?" }]
344342 };
345343 
346344 var message = await client.Messages.Create(parameters);
from line 699
701699 }),
702700 ],
703701 ToolChoice = new ToolChoiceTool { Name = "get_weather" },
704 Messages = [
705 new() { Role = Role.User, Content = "What's the weather like in San Francisco?" }
706 ]
702 Messages = [new UserMessageParam { Content = "What's the weather like in San Francisco?" }]
707703 };
708704 
709705 var message = await client.Messages.Create(parameters);
Feedback