Skip to content

AiParamDef

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

One declared parameter. The vocabulary is deliberately the component-field one (enum options, numeric range, tooltip) so an editor renders action parameters with the very same controls it renders component fields with — including optionsSource, the dynamic-enum escape hatch for choices that depend on the entity (a controller’s name, one of its pages).

optional label?: string

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

Human label; defaults to a prettified name.


optional max?: number

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


optional min?: number

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


name: string

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

Key in the params record, and the fallback label.


optional options?: readonly object[]

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

Fixed choices for type: 'enum'.


optional optionsSource?: string

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

Editor-resolved choice provider (e.g. 'uiController', 'uiControllerPage').


optional step?: number

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


optional tooltip?: string

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


type: "string" | "number" | "bool" | "enum"

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

Control kind. Asset/entity references are deliberately absent until the cook’s discovery pass and the scene’s entity remapper can see them.