FunctionToolDefinition 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
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. |
FunctionToolDefinition(String, String)
- Source:
- FunctionToolDefinition.cs
Initializes a new instance of FunctionTool for a function that requires no explicit function parameters.
public FunctionToolDefinition (string name, string description);
new Azure.AI.OpenAI.Assistants.FunctionToolDefinition : string * string -> Azure.AI.OpenAI.Assistants.FunctionToolDefinition
Public Sub New (name As String, description As String)
Parameters
- name
- String
The name of the function to be called.
- description
- String
A description of what the function does, used by the model to choose when and how to call the function.
Exceptions
name
or description
is null.
Applies to
FunctionToolDefinition(String, String, BinaryData)
- Source:
- FunctionToolDefinition.cs
Initializes a new instance of FunctionToolDefinition.
public FunctionToolDefinition (string name, string description, BinaryData parameters);
new Azure.AI.OpenAI.Assistants.FunctionToolDefinition : string * string * BinaryData -> Azure.AI.OpenAI.Assistants.FunctionToolDefinition
Public Sub New (name As String, description As String, parameters As BinaryData)
Parameters
- name
- String
The name of the function to be called.
- description
- String
A description of what the function does, used by the model to choose when and how to call the function.
- parameters
- BinaryData
The parameters the functions accepts, described as a JSON Schema object.
Exceptions
name
, description
or parameters
is null.
Applies to
Azure SDK for .NET