Class: Cadenya::Models::ObjectiveEventDataReasoning

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

Defined Under Namespace

Modules: Type

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(reasoning:, type:) ⇒ Object

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

Parameters:



# File 'lib/cadenya/models/objective_event_data_reasoning.rb', line 21

Instance Attribute Details

#reasoningCadenya::Models::Reasoning

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:

Returns:



14
# File 'lib/cadenya/models/objective_event_data_reasoning.rb', line 14

required :reasoning, -> { Cadenya::Reasoning }

#typeSymbol, Cadenya::Models::ObjectiveEventDataReasoning::Type

Parameters:

  • value (Cadenya::Models::ObjectiveEventDataReasoning::type_)

Returns:



19
# File 'lib/cadenya/models/objective_event_data_reasoning.rb', line 19

required :type, enum: -> { Cadenya::ObjectiveEventDataReasoning::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


19
# File 'sig/cadenya/models/objective_event_data_reasoning.rbs', line 19

def to_hash: -> {