你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResponsesDeveloperMessageItemResource Constructors

Definition

Overloads

ResponsesDeveloperMessageItemResource()

Source:
ResponsesDeveloperMessageItemResource.cs

Initializes a new instance of ResponsesDeveloperMessageItemResource for deserialization.

public ResponsesDeveloperMessageItemResource();
Public Sub New ()

Applies to

ResponsesDeveloperMessageItemResource(String, ResponsesMessageItemResourceStatus, IEnumerable<ItemContent>, CreatedBy)

Source:
ResponsesDeveloperMessageItemResource.cs

Initializes a new instance of ResponsesDeveloperMessageItemResource.

public ResponsesDeveloperMessageItemResource(string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageItemResourceStatus status, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent> content, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy createdBy = default);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesDeveloperMessageItemResource : string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageItemResourceStatus * seq<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent> * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesDeveloperMessageItemResource
Public Sub New (id As String, status As ResponsesMessageItemResourceStatus, content As IEnumerable(Of ItemContent), Optional createdBy As CreatedBy = Nothing)

Parameters

id
String
status
ResponsesMessageItemResourceStatus

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

content
IEnumerable<ItemContent>

The content associated with the message. 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.

createdBy
CreatedBy

The information about the creator of the item

Exceptions

id or content is null.

Applies to

ResponsesDeveloperMessageItemResource(ItemType, String, CreatedBy, IDictionary<String,BinaryData>, ResponsesMessageItemResourceStatus, ResponsesMessageRole, IReadOnlyList<ItemContent>)

Source:
ResponsesDeveloperMessageItemResource.cs

Initializes a new instance of ResponsesDeveloperMessageItemResource.

public ResponsesDeveloperMessageItemResource(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType type, string id, Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy createdBy, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageItemResourceStatus status, Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageRole role, System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent> content);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesDeveloperMessageItemResource : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemType * string * Azure.AI.AgentServer.Contracts.Generated.OpenAI.CreatedBy * System.Collections.Generic.IDictionary<string, BinaryData> * Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageItemResourceStatus * Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesMessageRole * System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.OpenAI.ItemContent> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponsesDeveloperMessageItemResource
Public Sub New (type As ItemType, id As String, createdBy As CreatedBy, serializedAdditionalRawData As IDictionary(Of String, BinaryData), status As ResponsesMessageItemResourceStatus, role As ResponsesMessageRole, content As IReadOnlyList(Of ItemContent))

Parameters

type
ItemType
id
String
createdBy
CreatedBy

The information about the creator of the item.

serializedAdditionalRawData
IDictionary<String,BinaryData>

Keeps track of any properties unknown to the library.

status
ResponsesMessageItemResourceStatus

The status of the item. One of in_progress, completed, or incomplete. Populated when items are returned via API.

role
ResponsesMessageRole

The role associated with the message.

content
IReadOnlyList<ItemContent>

The content associated with the message. 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