UNPKG

@microsoft/teams-ai

Version:

SDK focused on building AI based applications for Microsoft Teams.

21 lines 648 B
"use strict"; /** * @module teams-ai */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.planReady = planReady; const Action_1 = require("./Action"); /** * @private * @returns {Function} A function that takes TurnContext, TState, and Plan as arguments and returns a string or StopCommandName. */ function planReady() { return async (_context, _state, plan) => { return Array.isArray(plan.commands) && plan.commands.length > 0 ? '' : Action_1.StopCommandName; }; } //# sourceMappingURL=PlanReady.js.map