# `Imp.Predict.Search`
[🔗](https://github.com/deepfates/imp/blob/v0.18.1/lib/imp/predict/search.ex#L68)

Executes a bounded candidate search owned by one inference request.

Search supports sequential evaluation with causal prior outcomes or bounded
concurrent evaluation, deterministic tie selection, threshold stopping,
ordered-prefix projected budgets, task failure isolation, and complete
candidate-order provenance. It keeps no global or persistent search state.

Projected budgets describe caller estimates. Actual token usage, latency, and
provider billing must be measured separately by the caller or provider.

# `evaluator`

```elixir
@type evaluator() :: (map(), map() -&gt; {:ok, term(), term()} | {:error, term()})
```

# `run`

```elixir
@spec run([map()], evaluator(), keyword()) :: struct()
```

Runs a bounded, deterministic candidate search.

---

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