Log at info level changedagents-and-tools/tool-use/tool-runner
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+9added
Lines−29removed
From line
171
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits15to this page, all time
The whole hunk
from line 171, old and new numbered
/
from line 171
171171 using Anthropic.Models.Beta.Messages;
172172 using MessageCreateParams = Anthropic.Models.Beta.Messages.MessageCreateParams;
173173 using InputSchema = Anthropic.Models.Beta.Messages.InputSchema;
174 using Role = Anthropic.Models.Beta.Messages.Role;
175174 using Model = Anthropic.Models.Messages.Model;
176175
177176 var client = new AnthropicClient();
from line 234
235234 MaxTokens = 1024,
236235 Messages =
237236 [
238 new()
237 new BetaUserMessageParam
239238 {
240 Role = Role.User,
241239 Content = "What's the weather like in Paris? Also, what's 15 + 27?",
242240 },
243241 ],
from line 649
651649 {
652650 Model = Model.ClaudeOpus5_5,
653651 MaxTokens = 1024,
654 Messages =
655 [
656 new()
657 {
658 Role = Role.User,
659 Content = "What's the weather like in Paris?",
660 },
661 ],
652 Messages = [new BetaUserMessageParam { Content = "What's the weather like in Paris?" }],
662653 },
663654 [getWeatherTool]
664655 );
from line 900
909900 {
910901 Model = Model.ClaudeOpus5_5,
911902 MaxTokens = 1024,
912 Messages = [new() { Role = Role.User, Content = "What's the weather in San Francisco?" }],
903 Messages = [new BetaUserMessageParam { Content = "What's the weather in San Francisco?" }],
913904 },
914905 [getWeatherTool],
915906 maxIterations: 10
from line 927
936927 // PushMessages() flags state as modified; the runner skips its auto-append.
937928 // Supply the assistant turn and the tool result yourself, then add a follow-up.
938929 runner.PushMessages(
939 new()
930 new BetaAssistantMessageParam
940931 {
941 Role = Role.Assistant,
942 Content = new BetaMessageParamContent(
932 Content = new BetaMessageContentParam(
943933 JsonSerializer.SerializeToElement(
944934 message.Content.Select(block => block.Json).ToArray()
945935 )
946936 ),
947937 },
948 new()
949 {
950 Role = Role.User,
951 Content = new List<BetaContentBlockParam> { toolResult },
952 },
953 new() { Role = Role.User, Content = "Please be concise in your response." }
938 new BetaUserMessageParam { Content = new List<BetaContentBlockParam> { toolResult } },
939 new BetaUserMessageParam { Content = "Please be concise in your response." }
954940 );
955941 }
956942 ```
from line 1240
12541240 {
12551241 Model = Model.ClaudeOpus5_5,
12561242 MaxTokens = 1024,
1257 Messages =
1258 [
1259 new() { Role = Role.User, Content = "What's the weather in San Francisco?" },
1260 ],
1243 Messages = [new BetaUserMessageParam { Content = "What's the weather in San Francisco?" }],
12611244 },
12621245 [getWeatherTool]
12631246 );
from line 1638
16551638 {
16561639 Model = Model.ClaudeOpus5_5,
16571640 MaxTokens = 1024,
1658 Messages =
1659 [
1660 new() { Role = Role.User, Content = "What is 15 + 27?" },
1661 ],
1641 Messages = [new BetaUserMessageParam { Content = "What is 15 + 27?" }],
16621642 },
16631643 [calculateSumTool]
16641644 );
No line in this hunk matches that.