Class: Cadenya::Models::Reasoning

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/reasoning.rb,
sig/cadenya/models/reasoning.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(content:) ⇒ Reasoning

Some parameter documentations has been truncated, see Cadenya::Models::Reasoning for more details.

Reasoning carries the human-readable reasoning text a model produced while working on an iteration — extended thinking (Anthropic, Gemini) or reasoning summaries (OpenAI). It is emitted alongside the assistant message from the same model response and is purely informational: the text shown here is never sent back to the model.

Parameters:

  • content (String)

    The reasoning text. May be a verbatim chain of thought or a

  • content: (String)


# File 'lib/cadenya/models/reasoning.rb', line 13

Instance Attribute Details

#contentString

The reasoning text. May be a verbatim chain of thought or a provider-generated summary depending on the model.

Parameters:

  • value (String)

Returns:

  • (String)


11
# File 'lib/cadenya/models/reasoning.rb', line 11

required :content, String

Instance Method Details

#to_hash{ content: String }

Returns:

  • ({ content: String })


10
# File 'sig/cadenya/models/reasoning.rbs', line 10

def to_hash: -> { content: String }