Class: OpenAI::Models::Realtime::ResponseContentPartDoneEvent::Part

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/realtime/response_content_part_done_event.rb

Overview

See Also:

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • audio (String) (defaults to: nil)

    Base64-encoded audio data (if type is “audio”).

  • text (String) (defaults to: nil)

    The text content (if type is “text”).

  • transcript (String) (defaults to: nil)

    The transcript of the audio (if type is “audio”).

  • type (Symbol, OpenAI::Models::Realtime::ResponseContentPartDoneEvent::Part::Type) (defaults to: nil)

    The content type (“text”, “audio”).



# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 93

Instance Attribute Details

#audioString?

Base64-encoded audio data (if type is “audio”).

Returns:

  • (String, nil)


73
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 73

optional :audio, String

#textString?

The text content (if type is “text”).

Returns:

  • (String, nil)


79
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 79

optional :text, String

#transcriptString?

The transcript of the audio (if type is “audio”).

Returns:

  • (String, nil)


85
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 85

optional :transcript, String

#typeSymbol, ...

The content type (“text”, “audio”).



91
# File 'lib/openai/models/realtime/response_content_part_done_event.rb', line 91

optional :type, enum: -> { OpenAI::Realtime::ResponseContentPartDoneEvent::Part::Type }