@microsoft/teams-ai
Version:
SDK focused on building AI based applications for Microsoft Teams.
22 lines • 673 B
JavaScript
;
/**
* @module teams-ai
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.flaggedOutput = flaggedOutput;
const Action_1 = require("./Action");
/**
* @private
* @returns {() => Promise<string>} A function that logs an error and returns the StopCommandName.
*/
function flaggedOutput() {
return async () => {
console.error(`The bots output has been moderated but no handler was registered for 'AI.FlaggedOutputActionName'.`);
return Action_1.StopCommandName;
};
}
//# sourceMappingURL=FlaggedOutput.js.map