Skip to content

invokeAction

invokeAction<Ctx>(registry, name, ctx, bb, input?): void | Status

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

The one dispatch path for a named action, shared by the FSM, the behaviour tree and event wires: resolve the name and hand it whichever form the authored data carries — the registration wrapper fills in the other. An unknown name is a silent no-op, so each caller reports it in its own vocabulary (a BT leaf fails, an event wire warns).

Ctx

AiRegistry<Ctx>

string

Ctx

Blackboard

AiActionInput = {}

void | Status