UNPKG

@autobe/agent

Version:

AI backend server code generator

34 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AutoBeCyclinicExhaustedError = void 0; /** * Custom error indicating the cyclinic write-compile-correct loop exhausted all * retry attempts. * * Thrown by `AutoBeCyclinicController.orchestrate()` when the LLM repeatedly * fails to produce code that passes validation within the maximum allowed * iterations. * * Caught alongside `AutoBePreliminaryExhaustedError` and `AutoBeTimeoutError` * in orchestration pipelines to trigger force-pass behavior instead of crashing * the entire process. * * @author Samchon */ class AutoBeCyclinicExhaustedError extends Error { constructor(message) { super(message !== null && message !== void 0 ? message : "Cyclinic write-compile-correct loop exceeded the maximum number of iterations."); 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.AutoBeCyclinicExhaustedError = AutoBeCyclinicExhaustedError; //# sourceMappingURL=AutoBeCyclinicExhaustedError.js.map