Share via


VoiceLiveModelFactory.SessionUpdateResponseContentPartDone Method

Definition

Returned when a content part is done streaming in an assistant message item. Also emitted when a Response is interrupted, incomplete, or cancelled.

public static Azure.AI.VoiceLive.SessionUpdateResponseContentPartDone SessionUpdateResponseContentPartDone(string eventId = default, string responseId = default, string itemId = default, int outputIndex = 0, int contentIndex = 0, Azure.AI.VoiceLive.VoiceLiveContentPart part = default);
static member SessionUpdateResponseContentPartDone : string * string * string * int * int * Azure.AI.VoiceLive.VoiceLiveContentPart -> Azure.AI.VoiceLive.SessionUpdateResponseContentPartDone
Public Shared Function SessionUpdateResponseContentPartDone (Optional eventId As String = Nothing, Optional responseId As String = Nothing, Optional itemId As String = Nothing, Optional outputIndex As Integer = 0, Optional contentIndex As Integer = 0, Optional part As VoiceLiveContentPart = Nothing) As SessionUpdateResponseContentPartDone

Parameters

eventId
String
responseId
String

The ID of the response.

itemId
String

The ID of the item.

outputIndex
Int32

The index of the output item in the response.

contentIndex
Int32

The index of the content part in the item's content array.

part
VoiceLiveContentPart

The content part that is done.

Returns

A new SessionUpdateResponseContentPartDone instance for mocking.

Applies to