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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.