@autobe/agent
Version:
AI backend server code generator
32 lines • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AutoBePreliminaryExhaustedError = void 0;
/**
* Custom error indicating RAG loop exhausted all retry attempts.
*
* Thrown by `AutoBePreliminaryController.orchestrate()` when the LLM repeatedly
* requests more data without ever calling `complete`, exceeding
* `AutoBeConfigConstant.RAG_LIMIT` iterations.
*
* Caught alongside `AutoBeTimeoutError` in orchestration pipelines to trigger
* force-pass behavior instead of crashing the entire process.
*
* @author Samchon
*/
class AutoBePreliminaryExhaustedError extends Error {
constructor(message) {
super(message !== null && message !== void 0 ? message : "Preliminary process exceeded the maximum number of retries.");
const proto = new.target.prototype;
if (Object.setPrototypeOf)
Object.setPrototypeOf(this, proto);
else {
// biome-ignore lint: intended
this.__proto__ = proto;
}
}
get name() {
return this.constructor.name;
}
}
exports.AutoBePreliminaryExhaustedError = AutoBePreliminaryExhaustedError;
//# sourceMappingURL=AutoBePreliminaryExhaustedError.js.map