UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

23 lines 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OnQnAMatch = void 0; const onIntent_1 = require("./onIntent"); /** * Actions triggered when a MessageUpdateActivity is received. */ class OnQnAMatch extends onIntent_1.OnIntent { /** * Initializes a new instance of the [OnQnAMatch](xref:botbuilder-dialogs-adaptive.OnQnAMatch) class. * * @param actions Optional. A [Dialog](xref:botbuilder-dialogs.Dialog) list containing the actions to add to the plan when the rule constraints are met. * @param condition Optional. Condition which needs to be met for the actions to be executed. */ constructor(actions = [], condition) { super(OnQnAMatch.qnaMatchIntent, [], actions, condition); } } exports.OnQnAMatch = OnQnAMatch; OnQnAMatch.$kind = 'Microsoft.OnQnAMatch'; // this is a duplicate of QnAMakerRecognizer.QnAMatchIntent, but copying this here removes need to have dependency between QnA and Adaptive assemblies. OnQnAMatch.qnaMatchIntent = 'QnAMatch'; //# sourceMappingURL=onQnAMatch.js.map