ChatCompletionsToolChoice Constructors
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.
Overloads
ChatCompletionsToolChoice(ChatCompletionsToolDefinition) |
Initializes a new instance of ChatCompletionsToolChoice that requests the model constrains its response to calling a provided function tool definition that matches the name of the provided FunctionDefinition. |
ChatCompletionsToolChoice(FunctionDefinition) |
Initializes a new instance of ChatCompletionsToolChoice that requests the model constrains its response to calling a provided function tool that matches the name of the provided FunctionDefinition. |
ChatCompletionsToolChoice(ChatCompletionsToolDefinition)
- Source:
- ChatCompletionsToolChoice.cs
Initializes a new instance of ChatCompletionsToolChoice that requests the model constrains its response to calling a provided function tool definition that matches the name of the provided FunctionDefinition.
public ChatCompletionsToolChoice (Azure.AI.Inference.ChatCompletionsToolDefinition functionToolDefinition);
new Azure.AI.Inference.ChatCompletionsToolChoice : Azure.AI.Inference.ChatCompletionsToolDefinition -> Azure.AI.Inference.ChatCompletionsToolChoice
Public Sub New (functionToolDefinition As ChatCompletionsToolDefinition)
Parameters
- functionToolDefinition
- ChatCompletionsToolDefinition
A ChatCompletionsToolDefinition with a name that matches the function tool to which model responses should be constrained.
Exceptions
functionToolDefinition
is null.
Applies to
ChatCompletionsToolChoice(FunctionDefinition)
- Source:
- ChatCompletionsToolChoice.cs
Initializes a new instance of ChatCompletionsToolChoice that requests the model constrains its response to calling a provided function tool that matches the name of the provided FunctionDefinition.
public ChatCompletionsToolChoice (Azure.AI.Inference.FunctionDefinition functionDefinition);
new Azure.AI.Inference.ChatCompletionsToolChoice : Azure.AI.Inference.FunctionDefinition -> Azure.AI.Inference.ChatCompletionsToolChoice
Public Sub New (functionDefinition As FunctionDefinition)
Parameters
- functionDefinition
- FunctionDefinition
A FunctionDefinition with a name that matches the function tool to which model responses should be constrained.
Exceptions
functionDefinition
is null.
Applies to
Azure SDK for .NET