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

One model a contributed route offers. Minga fixes these fields into the selection policy.

This is a compile-time stub.

# `t`

```elixir
@type t() :: %MingaAgent.InferenceRoute.Model{
  compaction: :native | :unsupported,
  context_window: pos_integer(),
  cost: :metered | :subscription,
  display_name: String.t(),
  id: String.t(),
  images_in?: boolean(),
  max_output: pos_integer(),
  reasoning_levels: [String.t(), ...],
  tool_result_images?: boolean(),
  tools?: boolean(),
  usage: :tokens | :none
}
```

# `new`

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

---

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