Spectre.Inference.Selection (Spectre v0.3.0)

Copy Markdown View Source

Frozen model selection for one inference attempt.

Summary

Types

t()

@type t() :: %Spectre.Inference.Selection{
  attempt: pos_integer(),
  fallback_chain: [term()],
  level: term(),
  metadata: map(),
  model: term(),
  profile_hash: String.t(),
  reason: term(),
  request_id: String.t(),
  selector: module()
}

Functions

new(selection)

@spec new(t() | map() | keyword()) :: t()