/**
 * Context-specific error classes for budget and overflow scenarios.
 */
/**
 * Thrown when context exceeds model budget after all compaction stages,
 * preventing wasteful API calls to providers that will reject the request.
 */
export class ContextBudgetExceededError extends Error {
    estimatedTokens;
    availableTokens;
    stagesUsed;
    breakdown;
    constructor(message, details) {
        super(message);
        this.name = "ContextBudgetExceededError";
        this.estimatedTokens = details.estimatedTokens;
        this.availableTokens = details.availableTokens;
        this.stagesUsed = details.stagesUsed;
        this.breakdown = details.breakdown;
    }
}
//# sourceMappingURL=errors.js.map