Skip to main content

ReasoningContent

Reasoning content for chain-of-thought and extended thinking responses.
from adaline_api.models.reasoning_content import ReasoningContent

Fields

modality
str
required
Must be "reasoning".
value
ReasoningContentValueUnion
required
The reasoning value — either a "thinking" type with content and signature, or a "redacted" type. Use ReasoningContentValueUnion.from_dict() to construct.

Example

from adaline_api.models.reasoning_content import ReasoningContent
from adaline_api.models.reasoning_content_value_union import ReasoningContentValueUnion
from adaline_api.models.message_content import MessageContent

reasoning = ReasoningContent(
    modality="reasoning",
    value=ReasoningContentValueUnion.from_dict({
        "type": "thinking",
        "thinking": "Let me analyze this step by step...",
        "signature": "sig_abc123"
    })
)

content = MessageContent(actual_instance=reasoning)
JSON:
{
  "modality": "reasoning",
  "value": {
    "type": "thinking",
    "thinking": "Let me analyze this step by step...",
    "signature": "sig_abc123"
  }
}