Class: OpenAI::Models::Realtime::ResponseContentPartAddedEvent::Part
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::ResponseContentPartAddedEvent::Part
- Defined in:
- lib/openai/models/realtime/response_content_part_added_event.rb,
sig/openai/models/realtime/response_content_part_added_event.rbs
Overview
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#audio ⇒ String?
Base64-encoded audio data (if type is "audio").
-
#text ⇒ String?
The text content (if type is "text").
-
#transcript ⇒ String?
The transcript of the audio (if type is "audio").
-
#type ⇒ OpenAI::Models::Realtime::ResponseContentPartAddedEvent::Part::type_?
The content type ("text", "audio").
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
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_with_error, 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(audio: nil, text: nil, transcript: nil, type: nil) ⇒ Object
|
|
# File 'lib/openai/models/realtime/response_content_part_added_event.rb', line 100
|
Instance Attribute Details
#audio ⇒ String?
Base64-encoded audio data (if type is "audio").
80 |
# File 'lib/openai/models/realtime/response_content_part_added_event.rb', line 80 optional :audio, String |
#text ⇒ String?
The text content (if type is "text").
86 |
# File 'lib/openai/models/realtime/response_content_part_added_event.rb', line 86 optional :text, String |
#transcript ⇒ String?
The transcript of the audio (if type is "audio").
92 |
# File 'lib/openai/models/realtime/response_content_part_added_event.rb', line 92 optional :transcript, String |
#type ⇒ OpenAI::Models::Realtime::ResponseContentPartAddedEvent::Part::type_?
The content type ("text", "audio").
98 |
# File 'lib/openai/models/realtime/response_content_part_added_event.rb', line 98 optional :type, enum: -> { OpenAI::Realtime::ResponseContentPartAddedEvent::Part::Type } |
Instance Method Details
#to_hash ⇒ {
121 |
# File 'sig/openai/models/realtime/response_content_part_added_event.rbs', line 121
def to_hash: -> {
|