class

OpenAI::RealtimeConversationItemWithReferenceContentItem

Inherits JSON::Serializable < Reference < Object

Constructors

new(type_value : RealtimeConversationItemWithReferenceContentItemType | Nil = nil, text : String | Nil = nil, id : 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, used for input_audio content type.

Source
audio=(audio : String | Nil)

Base64-encoded audio bytes, used for input_audio content type.

Source
id

ID of a previous conversation item to reference (for item_reference content types in response.create events). These can reference both client and server created items.

Source
id=(id : String | Nil)

ID of a previous conversation item to reference (for item_reference content types in response.create events). These can reference both client and server created items.

Source
text

The text content, used for input_text and text content types.

Source
text=(text : String | Nil)

The text content, used for input_text and text content types.

Source
transcript

The transcript of the audio, used for input_audio content type.

Source
transcript=(transcript : String | Nil)

The transcript of the audio, used for input_audio content type.

Source
type_value

The content type (input_text, input_audio, item_reference, text).

Source
type_value=(type_value : RealtimeConversationItemWithReferenceContentItemType | Nil)

The content type (input_text, input_audio, item_reference, text).

Source