UNPKG

@microsoft/teams-ai

Version:

SDK focused on building AI based applications for Microsoft Teams.

22 lines 647 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.unknown = unknown; const Action_1 = require("./Action"); /** * @private * @returns {Function} An async function that logs an error and returns StopCommandName. */ function unknown() { return async (_context, _state, _data, action) => { console.error(`An AI action named "${action}" was predicted but no handler was registered.`); return Action_1.StopCommandName; }; } //# sourceMappingURL=Unknown.js.map