# `BB.Error.Invalid.Inference.ArtefactMissing`
[🔗](https://github.com/beam-bots/bb_inference/blob/main/lib/bb/error/invalid/inference/artefact_missing.ex#L5)

A model's artefact isn't where the build should have put it.

The `:bb_inference` compiler places artefacts in the application's `priv`
at build time. A download that failed is a warning, not a build failure,
so a build can succeed without one; this is where that shows up.

# `t`

```elixir
@type t() :: %BB.Error.Invalid.Inference.ArtefactMissing{
  __exception__: term(),
  artefact_path: Path.t() | nil,
  bread_crumbs: term(),
  class: term(),
  model: atom(),
  path: term(),
  source: String.t(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %BB.Error.Invalid.Inference.ArtefactMissing{
  __exception__: term(),
  artefact_path: term(),
  bread_crumbs: term(),
  class: term(),
  model: term(),
  path: term(),
  source: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}
```

Create an `Elixir.BB.Error.Invalid.Inference.ArtefactMissing` without raising it.

## Keys

- :model
- :artefact_path
- :source

---

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