UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

26 lines 925 B
import { TriggerSelector } from '../triggerSelector'; import { OnCondition } from '../conditions'; import { ActionContext } from '../actionContext'; /** * Select a random true rule implementation of TriggerSelector. */ export declare class RandomSelector extends TriggerSelector { static $kind: string; private _conditionals; private _evaluate; /** * Initialize the selector with the set of rules. * * @param conditionals Possible rules to match. * @param evaluate A boolean representing if rules should be evaluated on select. */ initialize(conditionals: OnCondition[], evaluate: boolean): void; /** * Select the best rule to execute. * * @param actionContext Dialog context for evaluation. * @returns A Promise with a number array. */ select(actionContext: ActionContext): Promise<OnCondition[]>; } //# sourceMappingURL=randomSelector.d.ts.map