UNPKG

@microsoft/botbuilder-m365

Version:

M365 extensions for Microsoft BotBuilder, Alpha release.

25 lines (21 loc) 695 B
/** * @module botbuilder-m365 */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ import { TurnContext } from 'botbuilder-core'; import { ConfiguredAIOptions } from './AI'; import { Plan } from './Planner'; import { PromptTemplate } from './Prompts'; import { TurnState } from './TurnState'; export interface Moderator<TState extends TurnState> { reviewPrompt( context: TurnContext, state: TState, prompt: PromptTemplate, options: ConfiguredAIOptions<TState> ): Promise<Plan | undefined>; reviewPlan(context: TurnContext, state: TState, plan: Plan): Promise<Plan>; }