Class: OpenAI::Models::Beta::ChatKit::ChatKitThreadUserMessageItem::Content::InputText
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKit::ChatKitThreadUserMessageItem::Content::InputText
- Defined in:
- lib/openai/models/beta/chatkit/chatkit_thread_user_message_item.rb,
sig/openai/models/beta/chatkit/chatkit_thread_user_message_item.rbs
Instance Attribute Summary collapse
-
#text ⇒ String
Plain-text content supplied by the user.
-
#type ⇒ Symbol, :input_text
Type discriminator that is always
input_text.
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
==, #==, #[], 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 ⇒ InputText
Returns a new instance of InputText.
72 |
# File 'sig/openai/models/beta/chatkit/chatkit_thread_user_message_item.rbs', line 72
def initialize: (text: String, ?type: :input_text) -> void
|
Instance Attribute Details
#text ⇒ String
Plain-text content supplied by the user.
94 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_user_message_item.rb', line 94 required :text, String |
#type ⇒ Symbol, :input_text
Type discriminator that is always input_text.
100 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_user_message_item.rb', line 100 required :type, const: :input_text |
Instance Method Details
#to_hash ⇒ { text: String, type: :input_text }
74 |
# File 'sig/openai/models/beta/chatkit/chatkit_thread_user_message_item.rbs', line 74
def to_hash: -> { text: String, type: :input_text }
|