Spectre.Inference.FrozenSelection (Spectre v0.3.2)

Copy Markdown View Source

Portable proof of the model selection accepted for one provider attempt.

The executable model binding is deliberately absent. model_ref is a digest used to verify that a binding resolved locally at dispatch still denotes the selection committed with the Run.

Summary

Functions

Returns a secret-free identity for an executable model binding.

Types

t()

@type t() :: %Spectre.Inference.FrozenSelection{
  attempt: pos_integer(),
  fallback_chain: [term()],
  level: term(),
  metadata: map(),
  model_ref: String.t(),
  profile_hash: String.t() | nil,
  reason: term(),
  request_id: String.t(),
  selector_ref: String.t()
}

Functions

model_ref(model)

@spec model_ref(term()) :: String.t()

Returns a secret-free identity for an executable model binding.