NoParameterFunction

public final class NoParameterFunction extends FunctionDeclaration


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

See also
defineFunction

for how to create an instance of this class.

Summary

Public methods

final @NonNull JSONObject
@NonNull JSONObject

Run the attached function with the provided arguments.

@NonNull List<@NonNull Schema<@NonNull Object>>

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

Public fields

function

public final @NonNull SuspendFunction0<@NonNull JSONObjectfunction

Public methods

execute

public final @NonNull JSONObject execute()

execute

public @NonNull JSONObject execute(@NonNull FunctionCallPart part)

Run the attached function with the provided arguments.

getParameters

public @NonNull List<@NonNull Schema<@NonNull Object>> getParameters()

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