Partager via


AIProjectsModelFactory.MessageDelta Method

Definition

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