Skip to content

ThinkingBlock

Base classes

Name Children Inherits
BaseContentBlock
clawd_code_sdk.models.content_blocks
Shared base for all content block types.

⋔ Inheritance diagram

graph TD
  1228571274["content_blocks.ThinkingBlock"]
  2489835100["content_blocks.BaseContentBlock"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2489835100 --> 1228571274
  3879467795 --> 2489835100
  2751680898 --> 3879467795

🛈 DocStrings

Bases: BaseContentBlock

Thinking/reasoning content block.

Source code in src/clawd_code_sdk/models/content_blocks.py
class ThinkingBlock(BaseContentBlock):
    """Thinking/reasoning content block."""

    type: Literal["thinking"] = "thinking"
    thinking: str
    signature: str = ""

    def to_otel(self) -> ReasoningPart:
        from logfire._internal.integrations.llm_providers.semconv import ReasoningPart

        return ReasoningPart(type="reasoning", content=self.thinking)

:fa-brands-github: Show source on GitHub