Share via


ResponseContentPartAddedEvent Constructors

Definition

Overloads

ResponseContentPartAddedEvent()

Source:
ResponseContentPartAddedEvent.cs

Initializes a new instance of ResponseContentPartAddedEvent for deserialization.

public ResponseContentPartAddedEvent();
Public Sub New ()

Applies to

ResponseContentPartAddedEvent(Int32, String, Int32, Int32, ItemContent)

Source:
ResponseContentPartAddedEvent.cs

Initializes a new instance of ResponseContentPartAddedEvent.

public ResponseContentPartAddedEvent(int sequenceNumber, string itemId, int outputIndex, int contentIndex, Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent part);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseContentPartAddedEvent : int * string * int * int * Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseContentPartAddedEvent
Public Sub New (sequenceNumber As Integer, itemId As String, outputIndex As Integer, contentIndex As Integer, part As ItemContent)

Parameters

sequenceNumber
Int32

The sequence number for this event.

itemId
String

The ID of the output item that the content part was added to.

outputIndex
Int32

The index of the output item that the content part was added to.

contentIndex
Int32

The index of the content part that was added.

part
ItemContent

The content part that was added. Please note ItemContent is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ItemContentInputAudio, ItemContentInputFile, ItemContentInputImage, ItemContentInputText, ItemContentOutputAudio, ItemContentOutputText and ItemContentRefusal.

Exceptions

itemId or part is null.

Applies to

ResponseContentPartAddedEvent(ResponseStreamEventType, Int32, IDictionary<String,BinaryData>, String, Int32, Int32, ItemContent)

Source:
ResponseContentPartAddedEvent.cs

Initializes a new instance of ResponseContentPartAddedEvent.

public ResponseContentPartAddedEvent(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseStreamEventType type, int sequenceNumber, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, string itemId, int outputIndex, int contentIndex, Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent part);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseContentPartAddedEvent : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseStreamEventType * int * System.Collections.Generic.IDictionary<string, BinaryData> * string * int * int * Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseContentPartAddedEvent
Public Sub New (type As ResponseStreamEventType, sequenceNumber As Integer, serializedAdditionalRawData As IDictionary(Of String, BinaryData), itemId As String, outputIndex As Integer, contentIndex As Integer, part As ItemContent)

Parameters

sequenceNumber
Int32

The sequence number for this event.

serializedAdditionalRawData
IDictionary<String,BinaryData>

Keeps track of any properties unknown to the library.

itemId
String

The ID of the output item that the content part was added to.

outputIndex
Int32

The index of the output item that the content part was added to.

contentIndex
Int32

The index of the content part that was added.

part
ItemContent

The content part that was added. Please note ItemContent is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include ItemContentInputAudio, ItemContentInputFile, ItemContentInputImage, ItemContentInputText, ItemContentOutputAudio, ItemContentOutputText and ItemContentRefusal.

Applies to