UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

31 lines 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OnUnknownIntent = void 0; const adaptiveEvents_1 = require("../adaptiveEvents"); const onDialogEvent_1 = require("./onDialogEvent"); /** * Actions triggered when a UnknownIntent event has been emitted by the recognizer. * * @remarks * A message is considered unhandled if there were no other conditions triggered by the message and * there is no active plan being executed. * This trigger is run when the utterance is not recognized and the fallback consultation is happening * It will only trigger if and when * * it is the leaf dialog AND * * none of the parent dialogs handle the event * This provides the parent dialogs the opportunity to handle global commands as fallback interruption. */ class OnUnknownIntent extends onDialogEvent_1.OnDialogEvent { /** * Creates a new `OnUnknownIntent` instance. * * @param actions (Optional) The actions to add to the plan when the rule constraints are met. * @param condition (Optional) The condition which needs to be met for the actions to be executed. */ constructor(actions = [], condition) { super(adaptiveEvents_1.AdaptiveEvents.unknownIntent, actions, condition); } } exports.OnUnknownIntent = OnUnknownIntent; OnUnknownIntent.$kind = 'Microsoft.OnUnknownIntent'; //# sourceMappingURL=onUnknownIntent.js.map