Skip to content

Add adaptive thinking support for Anthropic Messages API#30

Merged
ChengZhang-98 merged 1 commit intomainfrom
ed/adaptive-thinking
Mar 6, 2026
Merged

Add adaptive thinking support for Anthropic Messages API#30
ChengZhang-98 merged 1 commit intomainfrom
ed/adaptive-thinking

Conversation

@dedeswim
Copy link
Contributor

@dedeswim dedeswim commented Mar 5, 2026

Summary

  • Add ThinkingConfigAdaptiveParam (thinking.type="adaptive") to the Anthropic Messages API types
  • Claude now supports adaptive thinking where it automatically decides whether to use extended thinking based on request complexity

References

Test plan

  • Verify ThinkingConfigParam union accepts all three types: enabled, disabled, adaptive
  • Verify ThinkingConfigAdaptiveParam is exported from sequrity.types.messages

🤖 Generated with Claude Code

The Anthropic API now supports thinking.type="adaptive" in addition to
"enabled" and "disabled".

Ref: https://docs.anthropic.com/en/api/messages (thinking parameter)
Ref: https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dedeswim dedeswim marked this pull request as ready for review March 5, 2026 18:07
@dedeswim dedeswim marked this pull request as draft March 5, 2026 18:14
@dedeswim dedeswim marked this pull request as ready for review March 6, 2026 07:58
@dedeswim dedeswim requested a review from ChengZhang-98 March 6, 2026 07:58
@ChengZhang-98 ChengZhang-98 merged commit 9096505 into main Mar 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants