A2uiFunction

class A2uiFunction(val callableByAgent: Boolean = false, val agentOnly: Boolean = false, val invoke: (args: JsonObject, context: DataContext?) -> JsonElement?)(source)

A catalog function. invoke gets resolved args (formatString gets them raw, to interpolate itself) and the calling scope (null when the agent calls it via callRendererFunction).

Constructors

Link copied to clipboard
constructor(callableByAgent: Boolean = false, agentOnly: Boolean = false, invoke: (args: JsonObject, context: DataContext?) -> JsonElement?)

Properties

Link copied to clipboard

Only the agent may call it; it cannot be bound in the UI.

Link copied to clipboard

May the agent call it (allowedCallers agentOnly / rendererOrAgent)?

Link copied to clipboard
val invoke: (args: JsonObject, context: DataContext?) -> JsonElement?