# `Dsxir.Prediction`

Typed output of a predictor call.

`fields` is the validated, Zoi-passed output map keyed by output field name.
Access protocol forwards directly to `fields`, so `pred[:answer]` and
`pred.fields.answer` are equivalent.

# `t`

```elixir
@type t() :: %Dsxir.Prediction{
  completions: [String.t()],
  fields: map(),
  lm_usage: nil | map()
}
```

# `new`

```elixir
@spec new(
  map(),
  keyword()
) :: t()
```

---

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