OutputItemMessage Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| OutputItemMessage(String, MessageStatus, IEnumerable<MessageContent>) |
Creates an OutputItemMessage with the role defaulted to Assistant. |
| OutputItemMessage(String, MessageStatus, MessageRole, IEnumerable<MessageContent>) |
Initializes a new instance of OutputItemMessage. |
OutputItemMessage(String, MessageStatus, IEnumerable<MessageContent>)
- Source:
- OutputItemMessage.cs
Creates an OutputItemMessage with the role defaulted to Assistant.
public OutputItemMessage(string id, Azure.AI.AgentServer.Responses.Models.MessageStatus status, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.MessageContent> content);
new Azure.AI.AgentServer.Responses.Models.OutputItemMessage : string * Azure.AI.AgentServer.Responses.Models.MessageStatus * seq<Azure.AI.AgentServer.Responses.Models.MessageContent> -> Azure.AI.AgentServer.Responses.Models.OutputItemMessage
Public Sub New (id As String, status As MessageStatus, content As IEnumerable(Of MessageContent))
Parameters
- id
- String
The unique ID of the message.
- status
- MessageStatus
The status of the message.
- content
- IEnumerable<MessageContent>
The content parts of the message.
Applies to
OutputItemMessage(String, MessageStatus, MessageRole, IEnumerable<MessageContent>)
- Source:
- OutputItemMessage.cs
Initializes a new instance of OutputItemMessage.
public OutputItemMessage(string id, Azure.AI.AgentServer.Responses.Models.MessageStatus status, Azure.AI.AgentServer.Responses.Models.MessageRole role, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Responses.Models.MessageContent> content);
new Azure.AI.AgentServer.Responses.Models.OutputItemMessage : string * Azure.AI.AgentServer.Responses.Models.MessageStatus * Azure.AI.AgentServer.Responses.Models.MessageRole * seq<Azure.AI.AgentServer.Responses.Models.MessageContent> -> Azure.AI.AgentServer.Responses.Models.OutputItemMessage
Public Sub New (id As String, status As MessageStatus, role As MessageRole, content As IEnumerable(Of MessageContent))
Parameters
- id
- String
The unique ID of the message.
- status
- MessageStatus
The status of item. One of in_progress, completed, or incomplete. Populated when items are returned via API.
- role
- MessageRole
The role of the message. One of unknown, user, assistant, system, critic, discriminator, developer, or tool.
- content
- IEnumerable<MessageContent>
The content of the message.
Exceptions
id or content is null.