# `Tune.Runtime`
[🔗](https://github.com/mikehostetler/tune/blob/v0.5.0/lib/tune/runtime.ex#L1)

Runs a typed predictor or composed program on one input.

Use `run/3` to execute a program in an application, including a program
loaded from an artifact.

# `run`

```elixir
@spec run(Tune.Program.t(), map(), keyword()) ::
  {:ok, Tune.Prediction.t()} | {:error, Exception.t()}
```

Runs a program with a required `:model` configuration and returns a
`Tune.Prediction` with its output, steps, and call counts.

Pass `:max_model_calls`, `:max_steps`, or `:timeout` to bound execution.
Timeout is in milliseconds and defaults to 60,000. Use `:infinity` for
no timeout. If a program fails after it starts, the error retains the
partial prediction.

---

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