Class: OpenAI::Models::Realtime::ResponseContentPartDoneEvent::Part
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::ResponseContentPartDoneEvent::Part
- Defined in:
- lib/openai/models/realtime/response_content_part_done_event.rb
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 ⇒ Symbol, ...
The content type (“text”, “audio”).
Instance Method Summary collapse
-
#initialize(audio: nil, text: nil, transcript: nil, type: nil) ⇒ Object
constructor
The content part that is done.
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(audio: nil, text: nil, transcript: nil, type: nil) ⇒ Object
The content part that is done.
|
|
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 93
|
Instance Attribute Details
#audio ⇒ String?
Base64-encoded audio data (if type is “audio”).
73 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 73 optional :audio, String |
#text ⇒ String?
The text content (if type is “text”).
79 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 79 optional :text, String |
#transcript ⇒ String?
The transcript of the audio (if type is “audio”).
85 |
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 85 optional :transcript, String |