# `Spectre.Inference.Response`
[🔗](https://github.com/elchemista/spectre/blob/0.4.0/lib/spectre/inference/response.ex#L1)

Normalized inference response with optional usage and provider metadata.

# `t`

```elixir
@type t() :: %Spectre.Inference.Response{
  latency_ms: non_neg_integer() | nil,
  metadata: map(),
  provider_request_id: term(),
  selection:
    Spectre.Inference.Selection.t()
    | Spectre.Inference.FrozenSelection.t()
    | nil,
  text: String.t(),
  usage: map()
}
```

# `new`

```elixir
@spec new(t() | String.t() | map() | keyword()) :: t()
```

---

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