Class: OpenAI::Models::Responses::ResponseReasoningItem::Content
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Responses::ResponseReasoningItem::Content
- Defined in:
- lib/openai/models/responses/response_reasoning_item.rb,
sig/openai/models/responses/response_reasoning_item.rbs
Instance Attribute Summary collapse
-
#text ⇒ String
The reasoning text from the model.
-
#type ⇒ Symbol, :reasoning_text
The type of the reasoning text.
Instance Method Summary collapse
-
#initialize ⇒ Content
constructor
A new instance of Content.
- #to_hash ⇒ { text: String, type: :reasoning_text }
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
Returns a new instance of Content.
72 |
# File 'sig/openai/models/responses/response_reasoning_item.rbs', line 72
def initialize: (text: String, ?type: :reasoning_text) -> void
|
Instance Attribute Details
#text ⇒ String
The reasoning text from the model.
94 |
# File 'lib/openai/models/responses/response_reasoning_item.rb', line 94 required :text, String |
#type ⇒ Symbol, :reasoning_text
The type of the reasoning text. Always 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 }
74 |
# File 'sig/openai/models/responses/response_reasoning_item.rbs', line 74
def to_hash: -> { text: String, type: :reasoning_text }
|