struct

Anthropic::Content::ThinkingData

Inherits Anthropic::Content::Data < Struct < Value < Object

Thinking content data for extended thinking responses.

Used when Claude employs extended thinking to show its reasoning process. The thinking field contains the reasoning text, and signature may contain a cryptographic signature for verification.

Constructors

new(thinking : String, signature : String | Nil = nil)
Source

Instance methods

content_type
Source
signature?
Source
thinking
Source
to_content_json(json : JSON::Builder) : Nil
Source