FunctionDeclaration

abstract class FunctionDeclaration

Known direct subclasses
FourParameterFunction

A declared four param function, including implementation, that a model can be given access to in order to gain info or complete tasks.

NoParameterFunction

A declared zero param function, including implementation, that a model can be given access to in order to gain info or complete tasks.

OneParameterFunction

A declared one param function, including implementation, that a model can be given access to in order to gain info or complete tasks.

ThreeParameterFunction

A declared three param function, including implementation, that a model can be given access to in order to gain info or complete tasks.

TwoParameterFunction

A declared two param function, including implementation, that a model can be given access to in order to gain info or complete tasks.


A declared function, including implementation, that a model can be given access to in order to gain info or complete tasks.

Summary

Public constructors

FunctionDeclaration(name: String, description: String)

Public functions

abstract suspend JSONObject

Run the attached function with the provided arguments.

abstract List<Schema<Any?>>

The parameters of the attached function as a list of Schema.

Public properties

String
String

Public constructors

FunctionDeclaration

FunctionDeclaration(name: String, description: String)

Public functions

execute

abstract suspend fun execute(part: FunctionCallPart): JSONObject

Run the attached function with the provided arguments.

getParameters

abstract fun getParameters(): List<Schema<Any?>>

The parameters of the attached function as a list of Schema.

Public properties

description

val descriptionString

name

val nameString