FunctionTool 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
| 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.
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.