Schema
Schema name: RealtimeServerEventConversationItemTruncated
json
{
"(resource) realtime > (model) conversation_item_truncated_event > (schema)": {
"kind": "HttpDeclTypeAlias",
"oasRef": "#/components/schemas/RealtimeServerEventConversationItemTruncated",
"docstring": "Returned when an earlier assistant audio message item is truncated by the \nclient with a `conversation.item.truncate` event. This event is used to \nsynchronize the server's understanding of the audio with the client's playback.\n\nThis action will truncate the audio and remove the server-side text transcript \nto ensure there is no text in the context that hasn't been heard by the user.\n",
"ident": "ConversationItemTruncatedEvent",
"type": {
"kind": "HttpTypeObject",
"members": [
{
"ident": "audio_end_ms"
},
{
"ident": "content_index"
},
{
"ident": "event_id"
},
{
"ident": "item_id"
},
{
"ident": "type"
}
]
},
"childrenParentSchema": "object",
"children": [
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) audio_end_ms",
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) content_index",
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) event_id",
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) item_id",
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) type"
]
},
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) audio_end_ms": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/RealtimeServerEventConversationItemTruncated/properties/audio_end_ms",
"deprecated": false,
"key": "audio_end_ms",
"docstring": "The duration up to which the audio was truncated, in milliseconds.\n",
"type": {
"kind": "HttpTypeNumber"
},
"optional": false,
"nullable": false,
"schemaType": "integer",
"children": []
},
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) content_index": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/RealtimeServerEventConversationItemTruncated/properties/content_index",
"deprecated": false,
"key": "content_index",
"docstring": "The index of the content part that was truncated.",
"type": {
"kind": "HttpTypeNumber"
},
"optional": false,
"nullable": false,
"schemaType": "integer",
"children": []
},
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) event_id": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/RealtimeServerEventConversationItemTruncated/properties/event_id",
"deprecated": false,
"key": "event_id",
"docstring": "The unique ID of the server event.",
"type": {
"kind": "HttpTypeString"
},
"optional": false,
"nullable": false,
"schemaType": "string",
"children": []
},
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) item_id": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/RealtimeServerEventConversationItemTruncated/properties/item_id",
"deprecated": false,
"key": "item_id",
"docstring": "The ID of the assistant message item that was truncated.",
"type": {
"kind": "HttpTypeString"
},
"optional": false,
"nullable": false,
"schemaType": "string",
"children": []
},
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) type": {
"kind": "HttpDeclProperty",
"oasRef": "#/components/schemas/RealtimeServerEventConversationItemTruncated/properties/type",
"deprecated": false,
"key": "type",
"docstring": "The event type, must be `conversation.item.truncated`.",
"type": {
"kind": "HttpTypeUnion",
"oasRef": "#/components/schemas/RealtimeServerEventConversationItemTruncated/properties/type",
"types": [
{
"kind": "HttpTypeLiteral",
"literal": "conversation.item.truncated"
}
]
},
"optional": false,
"nullable": false,
"schemaType": "enum",
"childrenParentSchema": "enum",
"children": [
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) type > (member) 0"
]
},
"(resource) realtime > (model) conversation_item_truncated_event > (schema) > (property) type > (member) 0": {
"kind": "HttpDeclReference",
"type": {
"kind": "HttpTypeLiteral",
"literal": "conversation.item.truncated"
}
}
}