class

OpenAI::RealtimeServerEventResponseContentPartDonePart

Inherits JSON::Serializable < Reference < Object

The content part that is done.

Constructors

new(type_value : RealtimeServerEventResponseContentPartDonePartType | Nil = nil, text : String | Nil = nil, audio : String | Nil = nil, transcript : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

audio

Base64-encoded audio data (if type is "audio").

Source
audio=(audio : String | Nil)

Base64-encoded audio data (if type is "audio").

Source
text

The text content (if type is "text").

Source
text=(text : String | Nil)

The text content (if type is "text").

Source
transcript

The transcript of the audio (if type is "audio").

Source
transcript=(transcript : String | Nil)

The transcript of the audio (if type is "audio").

Source
type_value

The content type ("text", "audio").

Source
type_value=(type_value : RealtimeServerEventResponseContentPartDonePartType | Nil)

The content type ("text", "audio").

Source