Sycophant.Message.Content.Thinking (sycophant v0.5.0)

Copy Markdown

Thinking content part for assistant messages with extended reasoning.

Represents chain-of-thought produced by the model when reasoning/thinking is enabled. The :text field holds the raw reasoning text (Anthropic, Gemini, OpenAI reasoning_text). The :summary field holds a condensed summary when the provider supports it (OpenAI summary_text).

The optional :signature field carries a verification token (used by Anthropic and AWS Bedrock) that must be passed back unmodified in multi-turn conversations.

Examples

iex> %Sycophant.Message.Content.Thinking{text: "Let me think about this..."}
#Sycophant.Message.Content.Thinking<"Let me think about this...">

Summary

Types

t()

@type t() :: %Sycophant.Message.Content.Thinking{
  __type__: binary(),
  id: nil | binary(),
  signature: nil | binary(),
  summary: nil | binary(),
  text: nil | binary(),
  type: binary()
}

Functions

t()