Skip to content

ThinkingConfigEnabled

Base classes

Name Children Inherits
ClaudeCodeBaseModel
clawd_code_sdk.models.base
Base model for all Claude Code Pydantic models.

⋔ Inheritance diagram

graph TD
  2113663647["thinking.ThinkingConfigEnabled"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 2113663647
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Enabled thinking configuration with explicit token budget.

Source code in src/clawd_code_sdk/models/thinking.py
class ThinkingConfigEnabled(ClaudeCodeBaseModel):
    """Enabled thinking configuration with explicit token budget."""

    type: Literal["enabled"] = "enabled"

    budget_tokens: int
    """Determines how many tokens Claude can use for its internal reasoning process.
    Larger budgets can enable more thorough analysis for complex problems, improving
    response quality.
    Must be ≥1024 and less than `max_tokens`.
    See
    [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking)
    for details.
    """

    display: ThinkingDisplay | None = None
    """Controls how thinking content appears in the response.
    When set to `summarized`, thinking is returned normally. When set to `omitted`,
    thinking content is redacted but a signature is returned for multi-turn
    continuity. Defaults to `summarized`.
    """

budget_tokens instance-attribute

budget_tokens: int

Determines how many tokens Claude can use for its internal reasoning process. Larger budgets can enable more thorough analysis for complex problems, improving response quality. Must be ≥1024 and less than max_tokens. See extended thinking for details.

display class-attribute instance-attribute

display: ThinkingDisplay | None = None

Controls how thinking content appears in the response. When set to summarized, thinking is returned normally. When set to omitted, thinking content is redacted but a signature is returned for multi-turn continuity. Defaults to summarized.

:fa-brands-github: Show source on GitHub