botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
34 lines • 1.36 kB
TypeScript
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Expression } from 'adaptive-expressions';
import { Dialog } from 'botbuilder-dialogs';
import { OnIntent, OnIntentConfiguration } from './onIntent';
export interface OnChooseIntentConfiguration extends OnIntentConfiguration {
intents?: string[];
}
/**
* Actions triggered when an Intent of "ChooseIntent" has been emitted by a [Recognizer](xref:botbuilder-dialogs-adaptive.Recognizer).
*/
export declare class OnChooseIntent extends OnIntent implements OnChooseIntentConfiguration {
static $kind: string;
intents: string[];
/**
* Initializes a new instance of the [OnChooseIntent](xref:botbuilder-dialogs-adaptive.OnChooseIntent) class.
*
* @param {Dialog[]} actions Optional, actions to add to the plan when the rule constraints are met.
* @param {string} condition Optional, condition which needs to be met for the actions to be executed.
*/
constructor(actions?: Dialog[], condition?: string);
/**
* Create the expression for this condition.
*
* @returns [Expression](xref:adaptive-expressions.Expression) used to evaluate this rule.
*/
protected createExpression(): Expression;
}
//# sourceMappingURL=onChooseIntent.d.ts.map