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.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NLPActionRegistry(): NLPActionRegistry;Returns
Section titled “Returns”NLPActionRegistry
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”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.
Returns
Section titled “Returns”Slot<unknown>[]
Methods
Section titled “Methods”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
id |
string |
Returns
Section titled “Returns”NLPAction | undefined
list()
Section titled “list()”list(): NLPAction[];Defined in: core/src/nlp/nlp.action-registry.ts:24
All registered actions.
Returns
Section titled “Returns”register()
Section titled “register()”register(...actions): void;Defined in: core/src/nlp/nlp.action-registry.ts:17
Register one or more actions.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…actions |
NLPAction[] |
Returns
Section titled “Returns”void