RealtimeServerEventConversationItemAdded interface
Sent by the server when an Item is added to the default Conversation. This can happen in several cases:
- When the client sends a
conversation.item.createevent. - When the input audio buffer is committed. In this case the item will be a user message containing the audio from the buffer.
- When the model is generating a Response. In this case the
conversation.item.addedevent will be sent when the model starts generating a specific Item, and thus it will not yet have any content (andstatuswill bein_progress). The event will include the full content of the Item (except when model is generating a Response) except for audio data, which can be retrieved separately with aconversation.item.retrieveevent if necessary.
- Extends
Properties
| event_id | The unique ID of the server event. |
| item | The added conversation item, which may still be in progress while a response is generated. |
| previous_item_id | The identifier of the conversation item immediately preceding the added item. |
| type | The event type, must be |
Property Details
event_id
The unique ID of the server event.
event_id: string
Property Value
string
item
The added conversation item, which may still be in progress while a response is generated.
item: RealtimeConversationItemUnion
Property Value
previous_item_id
The identifier of the conversation item immediately preceding the added item.
previous_item_id?: string
Property Value
string
type
The event type, must be conversation.item.added.
type: "conversation.item.added"
Property Value
"conversation.item.added"