UNPKG

@microsoft/botbuilder-m365

Version:

M365 extensions for Microsoft BotBuilder, Alpha release.

25 lines 820 B
/** * @module botbuilder-m365 */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { TurnContext } from 'botbuilder'; import { TurnState } from './TurnState'; export interface PredictionEngine<TState extends TurnState, TPredictionOptions> { predictCommands(context: TurnContext, state: TState, data?: Record<string, any>, options?: TPredictionOptions): Promise<PredictedCommand[]>; } export interface PredictedCommand { type: 'DO' | 'SAY'; } export interface PredictedDoCommand extends PredictedCommand { type: 'DO'; action: string; data: Record<string, any>; } export interface PredictedSayCommand extends PredictedCommand { type: 'SAY'; response: string; } //# sourceMappingURL=PredictionEngine.d.ts.map