# `MingaAgent.ModelSelection.Policy.Limits`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_agent/model_selection/policy/limits.ex#L1)

Advertised model limits and the finite selected request output limit.

# `t`

```elixir
@type t() :: %MingaAgent.ModelSelection.Policy.Limits{
  context: pos_integer() | nil,
  input: pos_integer() | nil,
  output: pos_integer() | nil,
  request_output: pos_integer()
}
```

# `new`

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

Validates optional advertised limits and a required positive request limit.

---

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