# `MingaAgent.InferenceRoute.PlanWindow`
[🔗](https://github.com/jsmestad/minga/blob/main/sdk/lib/minga_agent/inference_route/plan_window.ex#L1)

One subscription limit window a route reports through `Minga.Extension.ModelRoutes.report_usage/3`.

`utilization` is the used fraction from 0 to 1, `resets_at` is a `DateTime` or nil, and `status` is `:allowed`, `:warning`, or `:rejected`.

This is a compile-time stub.

# `status`

```elixir
@type status() :: :allowed | :warning | :rejected
```

# `t`

```elixir
@type t() :: %MingaAgent.InferenceRoute.PlanWindow{
  kind: String.t(),
  resets_at: DateTime.t() | nil,
  status: status(),
  utilization: float()
}
```

# `new`

```elixir
@spec new(map() | keyword() | t()) ::
  {:ok, t()} | {:error, {:invalid_plan_window, atom()}}
```

---

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