ChatCompletionsFunctionToolDefinition 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.
The definition information for a chat completions function tool that can call a function in response to a tool call.
public class ChatCompletionsFunctionToolDefinition : Azure.AI.Inference.ChatCompletionsToolDefinition, System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.ChatCompletionsFunctionToolDefinition>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.ChatCompletionsFunctionToolDefinition>
type ChatCompletionsFunctionToolDefinition = class
inherit ChatCompletionsToolDefinition
interface IJsonModel<ChatCompletionsFunctionToolDefinition>
interface IPersistableModel<ChatCompletionsFunctionToolDefinition>
Public Class ChatCompletionsFunctionToolDefinition
Inherits ChatCompletionsToolDefinition
Implements IJsonModel(Of ChatCompletionsFunctionToolDefinition), IPersistableModel(Of ChatCompletionsFunctionToolDefinition)
- Inheritance
- Implements
Constructors
ChatCompletionsFunctionToolDefinition() |
Initializes a new instance of ChatCompletionsFunctionToolDefinition. |
ChatCompletionsFunctionToolDefinition(FunctionDefinition) |
Initializes a new instance of ChatCompletionsFunctionToolDefinition. |
Properties
Description |
A description of what the function does. The model will use this description when selecting the function and interpreting its parameters. |
Function |
The function definition details for the function tool. |
Name |
The name of the function to be called. |
Parameters |
The parameters the function accepts, described as a JSON Schema object. To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions). To assign an already formatted json string to this property use FromString(String). Examples:
|
Explicit Interface Implementations
Applies to
Azure SDK for .NET