Skip to content

NlpIntent

type NlpIntent = {
entities: NlpEntityRegistry;
id: string;
name: string;
providerId: string;
};

Defined in: engine/engine.types.ts:43

The executable half of a match: which intent, and what filled it.

Deliberately separate from the confidence around it. This is exactly what NlpEngine.execute takes back, so deciding whether a match is strong enough happens once, at the boundary, and nothing downstream has to re-read a score it has no business acting on.

entities: NlpEntityRegistry;

Defined in: engine/engine.types.ts:49


id: string;

Defined in: engine/engine.types.ts:45

The matched action’s generated id — what a caller dispatches on.


name: string;

Defined in: engine/engine.types.ts:47

The matched action’s human-readable name — what a caller displays.


providerId: string;

Defined in: engine/engine.types.ts:48