class

OpenAI::RealtimeBetaServerEventConversationItemTruncated

Inherits JSON::Serializable < Reference < Object

Returned when an earlier assistant audio message item is truncated by the client with a conversation.item.truncate event. This event is used to synchronize the server's understanding of the audio with the client's playback.

This action will truncate the audio and remove the server-side text transcript to ensure there is no text in the context that hasn't been heard by the user.

Constructors

new(event_id : String = "", type_value : Hash(String, JSON::Any) = Hash(String, JSON::Any).new, item_id : String = "", content_index : Int64 = 0, audio_end_ms : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

audio_end_ms

The duration up to which the audio was truncated, in milliseconds.

Source
audio_end_ms=(audio_end_ms : Int64)

The duration up to which the audio was truncated, in milliseconds.

Source
content_index

The index of the content part that was truncated.

Source
content_index=(content_index : Int64)

The index of the content part that was truncated.

Source
event_id

The unique ID of the server event.

Source
event_id=(event_id : String)

The unique ID of the server event.

Source
item_id

The ID of the assistant message item that was truncated.

Source
item_id=(item_id : String)

The ID of the assistant message item that was truncated.

Source
type_value

The event type, must be conversation.item.truncated.

Source
type_value=(type_value : Hash(String, JSON::Any))

The event type, must be conversation.item.truncated.

Source