Compartilhar via


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