/** * Transient provider-error classification shared by the agent-core agent * loop and the coding-agent auto-retry. * * Companion module to rate-limit-retry.ts, which is re-exported here so * retry call sites can classify an error from a single import. Rate limits * (HTTP 429) always take priority over this classifier — they follow their * own long 25-attempt backoff schedule — while every other transient * signal (overload, HTTP 5xx, "temporarily unavailable", network / * connection / stream failures) retries with a short backoff. * * Payment required (HTTP 402) and context-overflow errors are also not * covered here; callers exclude them before consulting this classifier * because retrying cannot help in those cases. * * @module @spectral/ai/utils/transient-error */ export { isRateLimitError } from "./rate-limit-retry.js"; /** * Check whether an error message (which may embed a raw provider JSON blob) * describes a transient API failure worth retrying — overload, HTTP 5xx, * "temporarily unavailable", or a network/connection/stream failure. * * Rate limits (429) are intentionally NOT matched here; call sites must * check `isRateLimitError` first so they keep their own long schedule. */ export declare function isTransientApiError(message: string): boolean; //# sourceMappingURL=transient-error.d.ts.map