Class: OpenAI::Models::Reasoning

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/reasoning.rb

Defined Under Namespace

Modules: GenerateSummary, Summary

Instance Attribute Summary collapse

Class Method 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, 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(effort: nil, generate_summary: nil, summary: nil) ⇒ void

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

o-series models only

Configuration options for reasoning models.

Parameters:



# File 'lib/openai/models/reasoning.rb', line 37

Instance Attribute Details

#effortSymbol, ...

o-series models only

Constrains effort on reasoning for reasoning models. Currently supported values are low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.

Returns:



15
# File 'lib/openai/models/reasoning.rb', line 15

optional :effort, enum: -> { OpenAI::ReasoningEffort }, nil?: true

#generate_summarySymbol, ...

Deprecated.

Deprecated: use summary instead.

A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed.



27
# File 'lib/openai/models/reasoning.rb', line 27

optional :generate_summary, enum: -> { OpenAI::Reasoning::GenerateSummary }, nil?: true

#summarySymbol, ...

A summary of the reasoning performed by the model. This can be useful for debugging and understanding the model's reasoning process. One of auto, concise, or detailed.

Returns:



35
# File 'lib/openai/models/reasoning.rb', line 35

optional :summary, enum: -> { OpenAI::Reasoning::Summary }, nil?: true

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/reasoning.rb', line 68