Skip to content

registerAction

registerAction(name, fn): void

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

Register a named action referenced by FSM state hooks / BT leaves / event rows — as a bare function, or with declared parameters, which is what turns an editor text box into typed controls.

string

AiAction<AiContext> | AiActionSpec<AiContext>

void