UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

32 lines 1.54 kB
/** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { BoolExpression } from 'adaptive-expressions'; import { RecognizerResult } from 'botbuilder'; import { DialogContext, Recognizer } from 'botbuilder-dialogs'; export interface AdaptiveRecognizerConfiguration { logPersonalInformation?: BoolExpression; } /** * Base class for adaptive recognizers. */ export declare abstract class AdaptiveRecognizer extends Recognizer implements AdaptiveRecognizerConfiguration { /** * (Optional) Flag that designates whether personally identifiable information (PII) should log to telemetry. */ logPersonalInformation: BoolExpression; /** * Uses the RecognizerResult to create a list of properties to be included when tracking the result in telemetry. * * @param {RecognizerResult} recognizerResult Recognizer Result. * @param {object} telemetryProperties A list of properties to append or override the properties created using the RecognizerResult. * @param {DialogContext} dialogContext Dialog Context. * @returns {Record<string, string>} A collection of properties that can be included when calling the TrackEvent method on the TelemetryClient. */ protected fillRecognizerResultTelemetryProperties(recognizerResult: RecognizerResult, telemetryProperties: Record<string, string>, dialogContext: DialogContext): Record<string, string>; } //# sourceMappingURL=adaptiveRecognizer.d.ts.map