ContextWindowOverflowError
Defined in: src/errors.ts:38
Error thrown when input exceeds the model’s context window.
This error indicates that the combined length of the input (prompt, messages, system prompt, and tool definitions) exceeds the maximum context window size supported by the model.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ContextWindowOverflowError(message): ContextWindowOverflowError;Defined in: src/errors.ts:44
Creates a new ContextWindowOverflowError.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
message | string | Error message describing the context overflow |
Returns
Section titled “Returns”ContextWindowOverflowError