Class Function
- Namespace
- Uralstech.UAI.Abstraction.Tools
A function that can be invoked by a model.
public class Function- Inheritance
- 
      objectFunction
- Extension Methods
Constructors
Function(string, string, Parameter[], Func<JToken, Awaitable<JObject>>)
public Function(string name, string description, Parameter[] parameters = null, Func<JToken, Awaitable<JObject>> onInvokeAsync = null)Parameters
- namestring
- The name/ID of the function. 
- descriptionstring
- The description of the function. 
- parametersParameter[]
- The parameters of the function. 
- onInvokeAsyncFunc<JToken, Awaitable<JObject>>
- The underlying C# function that will be invoked. 
Fields
Description
The description of the function.
public readonly string DescriptionField Value
- string
Name
The name/ID of the function.
public readonly string NameField Value
- string
OnInvokeAsync
The underlying C# function that will be invoked.
public Func<JToken, Awaitable<JObject>> OnInvokeAsyncField Value
- Func<JToken, Awaitable<JObject>>
Parameters
The parameters of the function.
public readonly Parameter[] ParametersField Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()Returns
- string
- A string that represents the current object.