Skip to content

NLPActionRegistry

Defined in: core/src/nlp/nlp.action-registry.ts:13

In-memory registry of NLPActions keyed by id, held per provider instance.

There is no duplicate-id check because ids are minted, not authored, so no two actions can claim the same one and registering one twice is idempotent. That is the whole point of generating them: providers that know nothing about each other still cannot collide.

new NLPActionRegistry(): NLPActionRegistry;

NLPActionRegistry

get slots(): Slot<unknown>[];

Defined in: core/src/nlp/nlp.action-registry.ts:36

Every distinct slot reachable from the registered utterances.

Deduped by identity, which the two things an engine does with this both require: values are fetched once per slot however many utterances share it, and updated is subscribed to once so one change queues one retrain.

Slot<unknown>[]

get(id): NLPAction | undefined;

Defined in: core/src/nlp/nlp.action-registry.ts:27

Look up a registered action by id, or undefined if none matches.

Parameter Type
id string

NLPAction | undefined


list(): NLPAction[];

Defined in: core/src/nlp/nlp.action-registry.ts:24

All registered actions.

NLPAction[]


register(...actions): void;

Defined in: core/src/nlp/nlp.action-registry.ts:17

Register one or more actions.

Parameter Type
actions NLPAction[]

void