# `HuggingfaceClient.HardcodedMappings`
[🔗](https://github.com/huggingface/huggingface_client/blob/v0.1.0/lib/huggingface_client/inference/hardcoded_mappings.ex#L1)

Agent-backed store for runtime dev overrides of provider/model mappings.

Useful in tests or local development to pin specific model→provider mappings
without hitting the Hub API.  Keyed by `{provider, hf_model_id}`.

## Example

    HuggingfaceClient.HardcodedMappings.add("groq", "meta-llama/Llama-3-8B", %{
      "provider"    => "groq",
      "hf_model_id" => "meta-llama/Llama-3-8B",
      "provider_id" => "llama-3-8b",
      "status"      => "live",
      "task"        => "conversational"
    })

    mapping = HuggingfaceClient.HardcodedMappings.get("groq", "meta-llama/Llama-3-8B")

# `add`

```elixir
@spec add(String.t(), String.t(), map()) :: :ok
```

Adds or replaces a mapping for `{provider, model_id}`.  Last write wins.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `get`

```elixir
@spec get(String.t(), String.t()) :: map() | nil
```

Returns the mapping for `{provider, model_id}`, or `nil` if not present.

# `remove`

```elixir
@spec remove(String.t(), String.t()) :: :ok
```

Removes the mapping for `{provider, model_id}`.  No-op if not present.

# `reset`

```elixir
@spec reset() :: :ok
```

Clears all runtime additions.

---

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