@microsoft/botbuilder-m365
Version:
M365 extensions for Microsoft BotBuilder, Alpha release.
21 lines • 847 B
TypeScript
/**
* @module botbuilder-m365
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
import { TurnContext } from 'botbuilder';
import { TurnState } from './TurnState';
export type PromptTemplate = string | ((context: TurnContext, state: TurnState) => Promise<string>);
export interface PromptParserOptions {
conversationHistory?: {
maxCharacterLength?: number;
lineSeparator?: string;
};
}
export declare class PromptParser {
static expandPromptTemplate(context: TurnContext, state: TurnState, prompt: PromptTemplate, options?: PromptParserOptions): Promise<string>;
static lookupPromptVariable(context: TurnContext, state: TurnState, variableName: string, options?: PromptParserOptions): string;
}
//# sourceMappingURL=PromptParser.d.ts.map