AIInferenceModelFactory.ChatResponseMessage 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 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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure SDK for .NET