---
url: >-
  https://adk.nht.io/api/@nhtio/adk/exceptions/variables/E_INVALID_TURN_CONTEXT.md
description: >-
  Thrown by {@link @nhtio/adk!TurnRunner} when the {@link
  @nhtio/adk!TurnContext} supplied to `run` fails schema validation.
---

# Variable: E\_INVALID\_TURN\_CONTEXT

```ts
const E_INVALID_TURN_CONTEXT: CreatedException<[]>;
```

Defined in: [lib/exceptions/runtime.ts:35](https://github.com/NHTIO/ADK/blob/v1.20260605.0/src/lib/exceptions/runtime.ts#L35)

Thrown by [@nhtio/adk!TurnRunner](../../turn_runner/classes/TurnRunner.md) when the [@nhtio/adk!TurnContext](../../types/interfaces/TurnContext.md) supplied to `run` fails schema
validation.

## Remarks

Marked fatal — an invalid context indicates a programming error in the caller, not a
recoverable runtime condition. Thrown synchronously out of `run()` before `turnStart` is
emitted.
