[October 23, 2026]
AI
Extended Thinking Is Not a Tool Call
Extended thinking / reasoning traces are not function calls. Cap the thinking budget so a hard problem cannot starve the final answer.
────────────────────────────────────────────────────────
Extended Thinking Is Not a Tool Call
Tip: Budget thinking tokens separately
Extended thinking / reasoning traces are not function calls. Cap the thinking budget so a hard problem cannot starve the final answer.
client.messages.create(
model="claude-sonnet-4-6",
max_tokens=16000,
thinking={"type": "enabled", "budget_tokens": 4000},
messages=messages,
)
Gotcha: A huge thinking budget with a tiny max_tokens
If thinking eats most of max_tokens, the visible answer is empty or cut off. Keep budget_tokens well under max_tokens.
thinking={"budget_tokens": 15000} # max_tokens=16000 leaves almost nothing
Source: https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking
────────────────────────────────────────────────────────
<-- back to posts