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).
Type Parameters
Section titled “Type Parameters”Ctx
Parameters
Section titled “Parameters”registry
Section titled “registry”AiRegistry<Ctx>
string
Ctx
input?
Section titled “input?”AiActionInput = {}
Returns
Section titled “Returns”void | Status