# `BB.Inference.ModelRef`
[🔗](https://github.com/beam-bots/bb_inference/blob/main/lib/bb/inference/model_ref.ex#L5)

The option type behind `BB.Inference.model_ref/1`.

Option validation only sees the value, so this only checks it is a name.
That the robot declares the model, and that its codec performs the task the
option asks for, is checked against the whole robot by
`BB.Inference.Transformers.ValidateModelReferences` when the robot compiles.

---

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