Share via


FunctionTool Constructors

Definition

Overloads

Name Description
FunctionTool()

Initializes a new instance of FunctionTool for deserialization.

FunctionTool(String, BinaryData, Nullable<Boolean>)

Initializes a new instance of FunctionTool.

FunctionTool(ToolType, IDictionary<String,BinaryData>, String, String, BinaryData, Nullable<Boolean>)

Initializes a new instance of FunctionTool.

FunctionTool()

Source:
FunctionTool.cs

Initializes a new instance of FunctionTool for deserialization.

public FunctionTool();
Public Sub New ()

Applies to

FunctionTool(String, BinaryData, Nullable<Boolean>)

Source:
FunctionTool.cs

Initializes a new instance of FunctionTool.

public FunctionTool(string name, BinaryData parameters, bool? strict);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.FunctionTool : string * BinaryData * Nullable<bool> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.FunctionTool
Public Sub New (name As String, parameters As BinaryData, strict As Nullable(Of Boolean))

Parameters

name
String

The name of the function to call.

parameters
BinaryData

A JSON schema object describing the parameters of the function.

strict
Nullable<Boolean>

Whether to enforce strict parameter validation. Default true.

Exceptions

name is null.

Applies to

FunctionTool(ToolType, IDictionary<String,BinaryData>, String, String, BinaryData, Nullable<Boolean>)

Source:
FunctionTool.cs

Initializes a new instance of FunctionTool.

public FunctionTool(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolType type, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData, string name, string description, BinaryData parameters, bool? strict);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.FunctionTool : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ToolType * System.Collections.Generic.IDictionary<string, BinaryData> * string * string * BinaryData * Nullable<bool> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.FunctionTool
Public Sub New (type As ToolType, serializedAdditionalRawData As IDictionary(Of String, BinaryData), name As String, description As String, parameters As BinaryData, strict As Nullable(Of Boolean))

Parameters

type
ToolType
serializedAdditionalRawData
IDictionary<String,BinaryData>

Keeps track of any properties unknown to the library.

name
String

The name of the function to call.

description
String

A description of the function. Used by the model to determine whether or not to call the function.

parameters
BinaryData

A JSON schema object describing the parameters of the function.

strict
Nullable<Boolean>

Whether to enforce strict parameter validation. Default true.

Applies to