botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
42 lines (41 loc) • 2.04 kB
TypeScript
/**
* @module botbuilder-dialogs-adaptive
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { Activity, RecognizerResult } from 'botbuilder';
import { Converter, ConverterFactory, DialogContext, Recognizer, RecognizerConfiguration } from 'botbuilder-dialogs';
import { AdaptiveRecognizer } from './adaptiveRecognizer';
export interface RecognizerSetConfiguration extends RecognizerConfiguration {
recognizers?: string[] | Recognizer[];
}
/**
* A recognizer class whose result is the union of results from multiple recognizers into one RecognizerResult.
*/
export declare class RecognizerSet extends AdaptiveRecognizer implements RecognizerSetConfiguration {
static $kind: string;
recognizers: Recognizer[];
/**
* @param property The key of the conditional selector configuration.
* @returns The converter for the selector configuration.
*/
getConverter(property: keyof RecognizerSetConfiguration): Converter | ConverterFactory;
/**
* Runs current DialogContext.TurnContext.Activity through a recognizer and returns a [RecognizerResult](xref:botbuilder-core.RecognizerResult).
*
* @param dialogContext The [DialogContext](xref:botbuilder-dialogs.DialogContext) for the current turn of conversation.
* @param activity [Activity](xref:botframework-schema.Activity) to recognize.
* @param telemetryProperties Optional, additional properties to be logged to telemetry with the LuisResult event.
* @param telemetryMetrics Optional, additional metrics to be logged to telemetry with the LuisResult event.
* @returns {Promise<RecognizerResult>} Analysis of utterance.
*/
recognize(dialogContext: DialogContext, activity: Activity, telemetryProperties?: {
[key: string]: string;
}, telemetryMetrics?: {
[key: string]: number;
}): Promise<RecognizerResult>;
private mergeResults;
}
//# sourceMappingURL=recognizerSet.d.ts.map