A thinking content block: the model's reasoning before it answers.
Only a model produces these. Keep them in the conversation: Omni sends them back to the provider that wrote them, which models need to continue their reasoning across tool use (see Thinking).
Struct fields
:text- the reasoning, or a summary of it.nilwhen the provider returns it encrypted:redacted_data- encrypted reasoning, which can be sent back but not read.:textisnilwhen this is set:signature- a token the provider uses to check the block when it is sent back:id- the block's id, for APIs that refer to reasoning by id (OpenAI Responses)
Summary
Functions
Creates a new thinking content block from a keyword list or map.
Types
Functions
@spec new(Enumerable.t()) :: t()
Creates a new thinking content block from a keyword list or map.