@agentica/core
Version:
Agentic AI Library specialized in LLM Function Calling
33 lines • 1.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.AgenticaValidationError = void 0;
const AgenticaConstant_1 = require("../constants/AgenticaConstant");
class AgenticaValidationError extends Error {
constructor(props) {
super(`Invalid arguments. The validation failed after ${AgenticaConstant_1.AgenticaConstant.RETRY} retries.`);
const proto = new.target.prototype;
// eslint-disable-next-line
if (Object.setPrototypeOf) {
Object.setPrototypeOf(this, proto);
}
else {
// eslint-disable-next-line
this.__proto__ = proto;
}
this.arguments = props.arguments;
this.errors = props.errors;
}
get name() {
return "AgenticaValidationError";
}
toJSON() {
return {
name: "AgenticaValidationError",
message: this.message,
arguments: this.arguments,
errors: this.errors,
};
}
}
exports.AgenticaValidationError = AgenticaValidationError;
//# sourceMappingURL=AgenticaValidationError.js.map