Table of Contents

Class Function

A function that can be invoked by a model.

public class Function
Inheritance
object
Function
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 string

The name/ID of the function.

description string

The 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

Parameter[]

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.