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

thinking-tool-workflows changedbuild-with-claude/thinking-tool-workflows

Nearest release: v2.1.309, published 3 hours 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+14added
Lines−11removed
From line 91 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits12to this page, all time

The whole hunk

from line 91, old and new numbered
/
lines
from line 91
9191 },
9292 }
9393 
94 # First request - Claude responds with thinking and tool request
94 # First request: Claude responds with thinking and tool request
9595 response = client.messages.create(
9696 model="claude-opus-5-5",
9797 max_tokens=16000,
from line 117
117117 }
118118 };
119119 
120 // First request - Claude responds with thinking and tool request
120 // First request: Claude responds with thinking and tool request
121121 const response = await client.messages.create({
122122 model: "claude-opus-5-5",
123123 max_tokens: 16000,
from line 242
242242 messages: [
243243 ['role' => 'user', 'content' => "What's the weather in Paris?"]
244244 ],
245 model: 'claude-opus-5-5',
245 model: Model::CLAUDE_OPUS_5_5,
246246 thinking: ['type' => 'adaptive'],
247247 tools: [$weatherTool],
248248 );
from line 348
348348 # Pretend this is what the weather API returns
349349 weather_data = {"temperature": 88}
350350 
351 # Second request - Include the assistant turn and the tool result
351 # Second request: include the assistant turn and the tool result
352352 continuation = client.messages.create(
353353 model="claude-opus-5-5",
354354 max_tokens=16000,
from line 407
407407 const weatherData = { temperature: 88 };
408408 
409409 if (toolUseBlock) {
410 // Second request - Include the assistant turn and the tool result
410 // Second request: include the assistant turn and the tool result
411411 const continuation = await client.messages.create({
412412 model: "claude-opus-5-5",
413413 max_tokens: 16000,
from line 488
488488 new UserMessageParam { Content = "What's the weather in Paris?" },
489489 // response.Content includes the thinking blocks; passing them back is required
490490 new AssistantMessageParam { Content = response.Content.Select(block => new ContentBlockParam(block.Json)).ToList() },
491 new UserMessageParam { Content = new List<ContentBlockParam>
491 new UserMessageParam
492492 {
493 new ContentBlockParam(new ToolResultBlockParam()
493 Content = new List<ContentBlockParam>
494494 {
495 ToolUseID = toolUseBlock?.ID ?? "",
496 Content = $"Current temperature: {weatherData.temperature}°F"
497 })
498 }}
495 new ContentBlockParam(new ToolResultBlockParam()
496 {
497 ToolUseID = toolUseBlock?.ID ?? "",
498 Content = $"Current temperature: {weatherData.temperature}°F"
499 })
500 }
501 }
499502 ]
500503 };
501504 
Feedback