Functions

Functions are core control flow and utility actions used to build agent skill scripts. They include LLM generation, variable assignment, conditional logic, sub-skill invocation, and flow control mechanisms like sleep and interrupt management.

Available Actions

ActionDescription
GenGenerate a synchronous LLM response (non-streaming).
GenStreamGenerate a streaming LLM response delivered to the client in real time.
SetAssign a value to a named variable.
ReturnReturn a value and exit the current skill.
IfConditional logic block for branching skill execution.
DoInvoke another named skill or action.
SleepPause execution for a specified duration.
FetchDataTrigger data injection from configured external sources.
EnableFollowUpEnable follow-up message generation.
DisableFollowUpDisable follow-up message generation.
StartNotInterruptibleBlockBegin a block that cannot be interrupted by new events.
StopNotInterruptibleBlockEnd a non-interruptible block.