# `Dsxir.Errors.LM.ContextWindow`

Raised when the LM rejects a request because the prompt exceeded its context window.

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Dsxir.Errors.LM.ContextWindow{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  limit: term(),
  model_id: term(),
  parent_error: term(),
  path: term(),
  prompt_tokens: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.Dsxir.Errors.LM.ContextWindow` without raising it.

## Keys

- :model_id
- :prompt_tokens
- :limit
- :parent_error

---

*Consult [api-reference.md](api-reference.md) for complete listing*
