Class: OpenAI::Models::Conversations::Message::Content::ReasoningText
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Conversations::Message::Content::ReasoningText
- Defined in:
- lib/openai/models/conversations/message.rb,
sig/openai/models/conversations/message.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 ⇒ ReasoningText
constructor
A new instance of ReasoningText.
- #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 ⇒ ReasoningText
Returns a new instance of ReasoningText.
66 |
# File 'sig/openai/models/conversations/message.rbs', line 66
def initialize: (text: String, ?type: :reasoning_text) -> void
|
Instance Attribute Details
#text ⇒ String
The reasoning text from the model.
104 |
# File 'lib/openai/models/conversations/message.rb', line 104 required :text, String |
#type ⇒ Symbol, :reasoning_text
The type of the reasoning text. Always reasoning_text.
110 |
# File 'lib/openai/models/conversations/message.rb', line 110 required :type, const: :reasoning_text |
Instance Method Details
#to_hash ⇒ { text: String, type: :reasoning_text }
68 |
# File 'sig/openai/models/conversations/message.rbs', line 68
def to_hash: -> { text: String, type: :reasoning_text }
|