FunctionToolDefinition 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 input definition information for a function tool as used to configure an assistant.
public class FunctionToolDefinition : Azure.AI.OpenAI.Assistants.ToolDefinition, System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.Assistants.FunctionToolDefinition>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.Assistants.FunctionToolDefinition>
type FunctionToolDefinition = class
inherit ToolDefinition
interface IJsonModel<FunctionToolDefinition>
interface IPersistableModel<FunctionToolDefinition>
Public Class FunctionToolDefinition
Inherits ToolDefinition
Implements IJsonModel(Of FunctionToolDefinition), IPersistableModel(Of FunctionToolDefinition)
- Inheritance
- Implements
Constructors
FunctionToolDefinition(String, String) |
Initializes a new instance of FunctionTool for a function that requires no explicit function parameters. |
FunctionToolDefinition(String, String, BinaryData) |
Initializes a new instance of FunctionToolDefinition. |
Properties
Description |
A description of what the function does, used by the model to choose when and how to call the function. |
Name |
The name of the function to be called. |
Parameters |
The parameters the functions 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:
|
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. |
GetHashCode() |
Serves as the default hash function. |
Operators
Explicit Interface Implementations
Applies to
Azure SDK for .NET