ItemMessage 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 |
|---|---|
| ItemMessage(MessageRole, BinaryData) |
Initializes a new instance of ItemMessage. |
| ItemMessage(MessageRole, IList<MessageContent>) |
Creates an ItemMessage with the specified role and strongly-typed content. The content list is serialized to BinaryData. |
ItemMessage(MessageRole, BinaryData)
- Source:
- ItemMessage.cs
Initializes a new instance of ItemMessage.
public ItemMessage(Azure.AI.AgentServer.Responses.Models.MessageRole role, BinaryData content);
new Azure.AI.AgentServer.Responses.Models.ItemMessage : Azure.AI.AgentServer.Responses.Models.MessageRole * BinaryData -> Azure.AI.AgentServer.Responses.Models.ItemMessage
Public Sub New (role As MessageRole, content As BinaryData)
Parameters
- role
- MessageRole
The role of the message. One of unknown, user, assistant, system, critic, discriminator, developer, or tool.
- content
- BinaryData
Exceptions
content is null.
Applies to
ItemMessage(MessageRole, IList<MessageContent>)
- Source:
- ItemMessage.cs
Creates an ItemMessage with the specified role and strongly-typed content. The content list is serialized to BinaryData.
public ItemMessage(Azure.AI.AgentServer.Responses.Models.MessageRole role, System.Collections.Generic.IList<Azure.AI.AgentServer.Responses.Models.MessageContent> content);
new Azure.AI.AgentServer.Responses.Models.ItemMessage : Azure.AI.AgentServer.Responses.Models.MessageRole * System.Collections.Generic.IList<Azure.AI.AgentServer.Responses.Models.MessageContent> -> Azure.AI.AgentServer.Responses.Models.ItemMessage
Public Sub New (role As MessageRole, content As IList(Of MessageContent))
Parameters
- role
- MessageRole
The message role.
- content
- IList<MessageContent>
The typed content parts.
Exceptions
content is null.