AiActionSpec
此内容尚不支持你的语言。
Defined in: ai/fsm/registry.ts:110
An action registered with metadata rather than as a bare function.
Type Parameters
Section titled “Type Parameters”Ctx
Properties
Section titled “Properties”outputs?
Section titled “outputs?”
optionaloutputs?: readonlyAiOutputDef[]
Defined in: ai/fsm/registry.ts:115
Declared outputs — what it writes into the out record it is handed.
params?
Section titled “params?”
optionalparams?: readonlyAiParamDef[]
Defined in: ai/fsm/registry.ts:113
Declared parameters, in canonical string order.
optionalpure?: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
separator?
Section titled “separator?”
optionalseparator?: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.
touches?
Section titled “touches?”
optionaltouches?:AiTouchesSource
Defined in: ai/fsm/registry.ts:124
What it reaches for. Undeclared means unknown, not nothing.