你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AIInferenceModelFactory.ChatCompletionsToolCall Method

Definition

Initializes a new instance of ChatCompletionsToolCall.

public static Azure.AI.Inference.ChatCompletionsToolCall ChatCompletionsToolCall (string id = default, Azure.AI.Inference.ChatCompletionsToolCallType type = default, Azure.AI.Inference.FunctionCall function = default);
static member ChatCompletionsToolCall : string * Azure.AI.Inference.ChatCompletionsToolCallType * Azure.AI.Inference.FunctionCall -> Azure.AI.Inference.ChatCompletionsToolCall
Public Shared Function ChatCompletionsToolCall (Optional id As String = Nothing, Optional type As ChatCompletionsToolCallType = Nothing, Optional function As FunctionCall = Nothing) As ChatCompletionsToolCall

Parameters

id
String

The ID of the tool call.

type
ChatCompletionsToolCallType

The type of tool call. Currently, only function is supported.

function
FunctionCall

The details of the function call requested by the AI model.

Returns

A new ChatCompletionsToolCall instance for mocking.

Applies to