Class: OpenAI::Models::Responses::ResponseReasoningItem::Content

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/responses/response_reasoning_item.rb,
sig/openai/models/responses/response_reasoning_item.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

#initializeContent

Returns a new instance of Content.

Parameters:

  • text: (String)
  • type: (:reasoning_text)


72
# File 'sig/openai/models/responses/response_reasoning_item.rbs', line 72

def initialize: (text: String, ?type: :reasoning_text) -> void

Instance Attribute Details

#textString

The reasoning text from the model.

Parameters:

  • value (String)

Returns:

  • (String)


94
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 94

required :text, String

#typeSymbol, :reasoning_text

The type of the reasoning text. Always reasoning_text.

Parameters:

  • value (:reasoning_text)

Returns:

  • (Symbol, :reasoning_text)


100
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 100

required :type, const: :reasoning_text

Instance Method Details

#to_hash{ text: String, type: :reasoning_text }

Returns:

  • ({ text: String, type: :reasoning_text })


74
# File 'sig/openai/models/responses/response_reasoning_item.rbs', line 74

def to_hash: -> { text: String, type: :reasoning_text }