Compartilhar via


AIInferenceModelFactory.StreamingChatResponseMessageUpdate Method

Definition

Initializes a new instance of StreamingChatResponseMessageUpdate.

public static Azure.AI.Inference.StreamingChatResponseMessageUpdate StreamingChatResponseMessageUpdate (Azure.AI.Inference.ChatRole? role = default, string content = default, System.Collections.Generic.IEnumerable<Azure.AI.Inference.StreamingChatResponseToolCallUpdate> toolCalls = default);
static member StreamingChatResponseMessageUpdate : Nullable<Azure.AI.Inference.ChatRole> * string * seq<Azure.AI.Inference.StreamingChatResponseToolCallUpdate> -> Azure.AI.Inference.StreamingChatResponseMessageUpdate
Public Shared Function StreamingChatResponseMessageUpdate (Optional role As Nullable(Of ChatRole) = Nothing, Optional content As String = Nothing, Optional toolCalls As IEnumerable(Of StreamingChatResponseToolCallUpdate) = Nothing) As StreamingChatResponseMessageUpdate

Parameters

role
Nullable<ChatRole>

The chat role associated with the message. If present, should always be 'assistant'.

content
String

The content of the message.

toolCalls
IEnumerable<StreamingChatResponseToolCallUpdate>

The tool calls that must be resolved and have their outputs appended to subsequent input messages for the chat completions request to resolve as configured.

Returns

A new StreamingChatResponseMessageUpdate instance for mocking.

Applies to