Compartilhar via


AIInferenceModelFactory.ChatResponseMessage Method

Definition

Initializes a new instance of ChatResponseMessage.

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

Parameters

role
ChatRole

The chat role associated with the message.

content
String

The content of the message.

toolCalls
IEnumerable<ChatCompletionsToolCall>

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 ChatResponseMessage instance for mocking.

Applies to