AIProjectsModelFactory.MessageDelta Method
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.
Initializes a new instance of MessageDelta.
public static Azure.AI.Projects.MessageDelta MessageDelta (Azure.AI.Projects.MessageRole role = default, System.Collections.Generic.IEnumerable<Azure.AI.Projects.MessageDeltaContent> content = default);
static member MessageDelta : Azure.AI.Projects.MessageRole * seq<Azure.AI.Projects.MessageDeltaContent> -> Azure.AI.Projects.MessageDelta
Public Shared Function MessageDelta (Optional role As MessageRole = Nothing, Optional content As IEnumerable(Of MessageDeltaContent) = Nothing) As MessageDelta
Parameters
- role
- MessageRole
The entity that produced the message.
- content
- IEnumerable<MessageDeltaContent>
The content of the message as an array of text and/or images. Please note MessageDeltaContent 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 MessageDeltaImageFileContent and MessageDeltaTextContent.
Returns
A new MessageDelta instance for mocking.
Applies to
Azure SDK for .NET