ai-utils.js
Version:
Build AI applications, chatbots, and agents with JavaScript and TypeScript.
25 lines (24 loc) • 698 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RetryError = void 0;
class RetryError extends Error {
constructor({ message, reason, errors, }) {
super(message);
Object.defineProperty(this, "errors", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "reason", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this.name = "RetryError";
this.reason = reason;
this.errors = errors;
}
}
exports.RetryError = RetryError;