class

OpenAI::RealtimeConversationItemMessageAssistantContentItem

Inherits JSON::Serializable < Reference < Object

Constructors

new(type_value : RealtimeConversationItemMessageAssistantContentItemType | 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 bytes, these will be parsed as the format specified in the session output audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified.

Source
audio=(audio : String | Nil)

Base64-encoded audio bytes, these will be parsed as the format specified in the session output audio type configuration. This defaults to PCM 16-bit 24kHz mono if not specified.

Source
text

The text content.

Source
text=(text : String | Nil)

The text content.

Source
transcript

The transcript of the audio content, this will always be present if the output type is audio.

Source
transcript=(transcript : String | Nil)

The transcript of the audio content, this will always be present if the output type is audio.

Source
type_value

The content type, output_text or output_audio depending on the session output_modalities configuration.

Source
type_value=(type_value : RealtimeConversationItemMessageAssistantContentItemType | Nil)

The content type, output_text or output_audio depending on the session output_modalities configuration.

Source