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
name
stringThe name/ID of the function.
description
stringThe description of the function.
parameters
Parameter[]The parameters of the function.
onInvokeAsync
Func<JToken, Awaitable<JObject>>The underlying C# function that will be invoked.
Fields
Description
The description of the function.
public readonly string Description
Field Value
- string
Name
The name/ID of the function.
public readonly string Name
Field Value
- string
OnInvokeAsync
The underlying C# function that will be invoked.
public Func<JToken, Awaitable<JObject>> OnInvokeAsync
Field Value
- Func<JToken, Awaitable<JObject>>
Parameters
The parameters of the function.
public readonly Parameter[] Parameters
Field Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.