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