Share via


VoiceLiveModelFactory.SessionUpdateConversationItemCreated Method

Definition

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.
public static Azure.AI.VoiceLive.SessionUpdateConversationItemCreated SessionUpdateConversationItemCreated(string eventId = default, string previousItemId = default, Azure.AI.VoiceLive.SessionResponseItem item = default);
static member SessionUpdateConversationItemCreated : string * string * Azure.AI.VoiceLive.SessionResponseItem -> Azure.AI.VoiceLive.SessionUpdateConversationItemCreated
Public Shared Function SessionUpdateConversationItemCreated (Optional eventId As String = Nothing, Optional previousItemId As String = Nothing, Optional item As SessionResponseItem = Nothing) As SessionUpdateConversationItemCreated

Parameters

eventId
String
previousItemId
String

The ID of the preceding item in the Conversation context, allows the client to understand the order of the conversation.

Returns

A new SessionUpdateConversationItemCreated instance for mocking.

Applies to