RealtimeServerEventConversationItemCreated interface

Returned when a conversation item is created. There are several scenarios that produce this event:

  • The server is generating a Response, which if successful will produce either one or two Items, which will be of type message (role assistant) or type function_call.
  • The input audio buffer has been committed, either by the client or the server (in server_vad mode). The server will take the content of the input audio buffer and add it to a new user message Item.
  • The client has sent a conversation.item.create event to add a new Item to the Conversation.
Extends

Properties

event_id

The unique ID of the server event.

item

The conversation item created by the service.

previous_item_id

The identifier of the conversation item immediately preceding the created item.

type

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

Property Details

event_id

The unique ID of the server event.

event_id: string

Property Value

string

item

The conversation item created by the service.

item: RealtimeConversationItemUnion

Property Value

previous_item_id

The identifier of the conversation item immediately preceding the created item.

previous_item_id?: string

Property Value

string

type

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

type: "conversation.item.created"

Property Value

"conversation.item.created"