Skip to content

AiValueSpec

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

A name that answers a question instead of doing something — the registration shape for a pure leaf. AiActionSpec minus the parts a question has no use for: no Status (nothing runs across frames) and no canonical-string projection (a value is reached by a wire, never by a hand-typed arg).

Ctx

outputs: readonly AiOutputDef[]

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

Declared outputs. A value with none is a name nothing can read.


optional params?: readonly AiParamDef[]

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

Declared inputs — the same vocabulary an action’s parameters use.


optional touches?: AiTouches

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

What it reads. Undeclared means unknown, not nothing.

evaluate(ctx, bb, params, out): void

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

Fill out with the declared outputs. Must not change the world.

Ctx

Blackboard

AiParams

AiOutputs

void