Sdílet prostřednictvím


FunctionToolDefinition Constructors

Definition

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