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?)