Skip to content

AiActionSpec

Defined in: ai/fsm/registry.ts:110

An action registered with metadata rather than as a bare function.

Ctx

optional outputs?: readonly AiOutputDef[]

Defined in: ai/fsm/registry.ts:115

Declared outputs — what it writes into the out record it is handed.


optional params?: readonly AiParamDef[]

Defined in: ai/fsm/registry.ts:113

Declared parameters, in canonical string order.


optional pure?: boolean

Defined in: ai/fsm/registry.ts:122

True when running it changes nothing: the name answers a question. A pure name may be evaluated on demand and in any order, which is what lets a script graph pull a value up its data wires instead of sequencing it. A leaf that mutates the world and ALSO hands back a value is not pure.


run: AiAction<Ctx>

Defined in: ai/fsm/registry.ts:111


optional separator?: string

Defined in: ai/fsm/registry.ts:131

Separator joining the parameters in the canonical string form. Default ':' — the convention authored data already uses ("tabs:settings"). The LAST parameter absorbs any remaining separators, so a value may contain one.


optional touches?: AiTouchesSource

Defined in: ai/fsm/registry.ts:124

What it reaches for. Undeclared means unknown, not nothing.