Class: ContextOverflowError

Defined in: errors.ts:258

Error thrown when context window cannot be reduced sufficiently.

This occurs when:

  • Multiple summarization rounds fail to reduce context below target
  • Content is too large even after aggressive filtering

Example

throw new ContextOverflowError(
  'Unable to reduce context below 90% after 3 summarization rounds',
  0.95,  // current utilization
  3      // rounds attempted
);

Extends

Constructors

Constructor

new ContextOverflowError(
   message, 
   utilization, 
   roundsAttempted?): ContextOverflowError;

Defined in: errors.ts:259

Parameters

Parameter Type
message string
utilization number
roundsAttempted? number

Returns

ContextOverflowError

Overrides

AgentError.constructor

Properties

cause?

readonly optional cause?: Error;

Defined in: errors.ts:17

Inherited from

AgentError.cause

roundsAttempted?

readonly optional roundsAttempted?: number;

Defined in: errors.ts:262

utilization

readonly utilization: number;

Defined in: errors.ts:261