ChatCompletionsToolChoice Class
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.
Represents an optional control that specifies which, if any, tools may be called by the model while processing a chat completions request.
public class ChatCompletionsToolChoice
type ChatCompletionsToolChoice = class
Public Class ChatCompletionsToolChoice
- Inheritance
-
ChatCompletionsToolChoice
Remarks
Constructors
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. |
Fields
Auto |
Specifies that the model may either use any of the tools provided in this chat completions request or instead return a standard chat completions response as if no tools were provided. |
None |
Specifies that the model should not respond with a tool call and should instead provide a standard chat completions response. Response content may still be influenced by the provided tool definitions. |
Required |
Specifies that the model should respond with a call to one or more tools. |
Operators
Implicit(ChatCompletionsToolDefinition to ChatCompletionsToolChoice) | |
Implicit(FunctionDefinition to ChatCompletionsToolChoice) |
Applies to
Azure SDK for .NET