Class: OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputText
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::DecisionUserMessage::Content::Part::InputText
- Defined in:
- lib/openai/models/live/decision_user_message.rb,
sig/openai/models/live/decision_user_message.rbs
Instance Attribute Summary collapse
-
#text ⇒ String
The text input to the model.
- #type ⇒ Symbol, :input_text
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ InputText
constructor
A new instance of InputText.
- #to_hash ⇒ { text: String, ?type: :input_text }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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 ⇒ InputText
Returns a new instance of InputText.
73 |
# File 'sig/openai/models/live/decision_user_message.rbs', line 73
def initialize: (text: String, ?type: :input_text) -> void
|
Instance Attribute Details
#text ⇒ String
The text input to the model.
69 |
# File 'lib/openai/models/live/decision_user_message.rb', line 69 required :text, String |
#type ⇒ Symbol, :input_text
74 |
# File 'lib/openai/models/live/decision_user_message.rb', line 74 required :type, const: :input_text |
Instance Method Details
#to_hash ⇒ { text: String, ?type: :input_text }
75 |
# File 'sig/openai/models/live/decision_user_message.rbs', line 75
def to_hash: -> { text: String, ?type: :input_text }
|