@microsoft/teams-ai
Version:
SDK focused on building AI based applications for Microsoft Teams.
20 lines • 503 B
JavaScript
;
/**
* @module teams-ai
*/
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.httpError = httpError;
/**
* @private
* @returns {Promise<string>} A promise that resolves to a string.
*/
function httpError() {
return async (_context, _state, err) => {
throw err || new Error(`An AI http request failed`);
};
}
//# sourceMappingURL=HttpError.js.map