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

Immutable handoff produced after inference selection.

A prepared inference binds the portable descriptor and frozen selection to
the provider options and optional streaming adapter selected for the current
process. It can appear in the return value of routing and runner APIs when an
Instance owns the remaining lifecycle.

This value is process-local dispatch material, not a durable checkpoint.
`Spectre.Run.InferenceContinuation` stores the portable descriptor and frozen
selection needed to reconstruct it during recovery.

# `t`

```elixir
@type t() :: %Spectre.Inference.Prepared{
  descriptor: Spectre.Inference.Descriptor.t(),
  frozen_selection: Spectre.Inference.FrozenSelection.t(),
  provider_opts: keyword(),
  selection: Spectre.Inference.Selection.t(),
  stream_adapter: module() | nil,
  stream_adapter_opts: keyword(),
  stream_capabilities: MapSet.t(atom())
}
```

---

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