Class: OpenAI::Models::Realtime::RealtimeConversationItemAssistantMessage::Content
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeConversationItemAssistantMessage::Content
- Defined in:
- lib/openai/models/realtime/realtime_conversation_item_assistant_message.rb
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#text ⇒ String?
The text content.
-
#type ⇒ Symbol, ...
The content type.
Instance Method Summary collapse
- #initialize(text: nil, type: nil) ⇒ Object constructor
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(text: nil, type: nil) ⇒ Object
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/openai/models/realtime/realtime_conversation_item_assistant_message.rb', line 59 class Content < OpenAI::Internal::Type::BaseModel # @!attribute text # The text content. # # @return [String, nil] optional :text, String # @!attribute type # The content type. Always `text` for assistant messages. # # @return [Symbol, OpenAI::Models::Realtime::RealtimeConversationItemAssistantMessage::Content::Type, nil] optional :type, enum: -> { OpenAI::Realtime::RealtimeConversationItemAssistantMessage::Content::Type } # @!method initialize(text: nil, type: nil) # @param text [String] The text content. # # @param type [Symbol, OpenAI::Models::Realtime::RealtimeConversationItemAssistantMessage::Content::Type] The content type. Always `text` for assistant messages. # The content type. Always `text` for assistant messages. # # @see OpenAI::Models::Realtime::RealtimeConversationItemAssistantMessage::Content#type module Type extend OpenAI::Internal::Type::Enum TEXT = :text # @!method self.values # @return [Array<Symbol>] end end |
Instance Attribute Details
#text ⇒ String?
The text content.
64 |
# File 'lib/openai/models/realtime/realtime_conversation_item_assistant_message.rb', line 64 optional :text, String |