# `MingaAgent.ModelSelection.Credential.ApiKey`
[🔗](https://github.com/jsmestad/minga/blob/main/lib/minga_agent/model_selection/credential/api_key.ex#L1)

Exact API-key source identity; the key value is never retained.

# `t`

```elixir
@type t() :: %MingaAgent.ModelSelection.Credential.ApiKey{
  provider: String.t(),
  source: :env | :file
}
```

# `new`

```elixir
@spec new(String.t(), :env | :file) :: t()
```

Pins the provider and source without retaining its secret.

---

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