Omni.Content.Thinking (Omni v1.2.1)

Copy Markdown View Source

A thinking content block representing the model's chain-of-thought reasoning.

When text is nil and redacted_data is present, the block contains encrypted/redacted thinking content that must round-trip but cannot be displayed. The signature field is an opaque token used to verify thinking block integrity across round trips.

Summary

Types

t()

Chain-of-thought reasoning. text is nil when the content is redacted.

Functions

Creates a new thinking content block from a keyword list or map.

Types

t()

@type t() :: %Omni.Content.Thinking{
  redacted_data: String.t() | nil,
  signature: String.t() | nil,
  text: String.t() | nil
}

Chain-of-thought reasoning. text is nil when the content is redacted.

Functions

new(attrs)

@spec new(Enumerable.t()) :: t()

Creates a new thinking content block from a keyword list or map.