---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/llm/openai_responses/exceptions/variables/E_OPENAI_RESPONSES_CONTEXT_OVERFLOW.md
description: >-
  Thrown when the total token weight of the resolved request exceeds
  `contextWindow`. Only raised when `tokenEncoding` is non-null. Carries `{
  total, contextWindow, tokenEncoding, perBucket }` in the message so middleware
  can target shedding.
---

# Variable: E\_OPENAI\_RESPONSES\_CONTEXT\_OVERFLOW

```ts
const E_OPENAI_RESPONSES_CONTEXT_OVERFLOW: CreatedException<
  [number, number, string, string]
>;
```

Defined in: [src/batteries/llm/openai\_responses/exceptions.ts:32](https://github.com/NHTIO/ADK/blob/v1.20260901.0/src/src/batteries/llm/openai_responses/exceptions.ts#L32)

Thrown when the total token weight of the resolved request exceeds `contextWindow`. Only raised
when `tokenEncoding` is non-null. Carries `{ total, contextWindow, tokenEncoding, perBucket }` in
the message so middleware can target shedding.
