openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
23 lines (22 loc) • 1.22 kB
JavaScript
//#region packages/agent-core/src/errors.ts
const TRANSCRIPT_NOT_CONTINUABLE_ERROR_CODE = "openclaw_transcript_not_continuable";
const REPETITIVE_OUTPUT_ERROR_MESSAGE = "Repetitive output stopped. Try a larger model or shorten your request before retrying.";
const REPEATED_TOOL_ERROR_CODE = "openclaw_repeated_tool_error";
const REPEATED_TOOL_ERROR_MESSAGE = "OpenClaw stopped this turn after 3 consecutive identical tool failures. Check the tool inputs or service, then use a changed request.";
/** A tool rejected model-authored arguments during prepareArguments, before execution. */
var ToolArgumentValidationError = class extends Error {
constructor(e, t) {
super(e, t);
this.name = "ToolArgumentValidationError";
}
};
var TranscriptNotContinuableError = class extends Error {
constructor(e) {
super(`Cannot continue from message role: ${e}`);
this.code = TRANSCRIPT_NOT_CONTINUABLE_ERROR_CODE;
this.name = "TranscriptNotContinuableError";
this.role = e;
}
};
//#endregion
export { ToolArgumentValidationError as a, TRANSCRIPT_NOT_CONTINUABLE_ERROR_CODE as i, REPEATED_TOOL_ERROR_MESSAGE as n, TranscriptNotContinuableError as o, REPETITIVE_OUTPUT_ERROR_MESSAGE as r, REPEATED_TOOL_ERROR_CODE as t };