Skip to content

NLPActionContext

type NLPActionContext = {
entities: NlpEntityRegistry;
logger: Logger;
services: Services;
};

Defined in: core/src/nlp/nlp.types.ts:16

Everything an intent’s execute receives: the shared Services and what the phrase filled.

There is no input here, and that is the difference from an ActionContext. An action is handed arguments a caller composed against a schema; an intent is handed the spans a phrase happened to fill, looked up by the slot objects the utterance already named.

entities: NlpEntityRegistry;

Defined in: core/src/nlp/nlp.types.ts:18


logger: Logger;

Defined in: core/src/nlp/nlp.types.ts:19


services: Services;

Defined in: core/src/nlp/nlp.types.ts:17