Share via


ResponseRefusalDoneEvent Constructors

Definition

Overloads

ResponseRefusalDoneEvent()

Source:
ResponseRefusalDoneEvent.cs

Initializes a new instance of ResponseRefusalDoneEvent for deserialization.

public ResponseRefusalDoneEvent();
Public Sub New ()

Applies to

ResponseRefusalDoneEvent(Int32, String, Int32, Int32, String)

Source:
ResponseRefusalDoneEvent.cs

Initializes a new instance of ResponseRefusalDoneEvent.

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

Parameters

sequenceNumber
Int32

The sequence number for this event.

itemId
String

The ID of the output item that the refusal text is finalized.

outputIndex
Int32

The index of the output item that the refusal text is finalized.

contentIndex
Int32

The index of the content part that the refusal text is finalized.

refusal
String

The refusal text that is finalized.

Exceptions

itemId or refusal is null.

Applies to

ResponseRefusalDoneEvent(ResponseStreamEventType, Int32, IDictionary<String,BinaryData>, String, Int32, Int32, String)

Source:
ResponseRefusalDoneEvent.cs

Initializes a new instance of ResponseRefusalDoneEvent.

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

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 refusal text is finalized.

outputIndex
Int32

The index of the output item that the refusal text is finalized.

contentIndex
Int32

The index of the content part that the refusal text is finalized.

refusal
String

The refusal text that is finalized.

Applies to