ItemMessage Class
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.
Message.
public class ItemMessage : Azure.AI.AgentServer.Responses.Models.Item, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.ItemMessage>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.ItemMessage>
type ItemMessage = class
inherit Item
interface IJsonModel<ItemMessage>
interface IPersistableModel<ItemMessage>
Public Class ItemMessage
Inherits Item
Implements IJsonModel(Of ItemMessage), IPersistableModel(Of ItemMessage)
- Inheritance
- Implements
Constructors
| 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. |
Properties
| Name | Description |
|---|---|
| Content |
The content of the message. |
| Role |
The role of the message. One of |
Methods
Explicit Interface Implementations
Extension Methods
| Name | Description |
|---|---|
| GetContentExpanded(ItemMessage) |
Expands the Content BinaryData into a typed list of MessageContent objects. A plain JSON string is wrapped as a MessageContentInputTextContent. A JSON array is deserialized element-by-element via MessageContent polymorphic deserialization. |