PtcRunner.LLM.PreparedModel (PtcRunner v0.15.0)

Copy Markdown View Source

Immutable result of preparing a configured LLM selector.

The value seals the adapter, original selector, adapter-owned request target, catalog status, requested requirements, and adapter attestation. Hosts pass it to PtcRunner.LLM.callback/2. PtcRunner.LLM.prepare/2 is the sole supported constructor; copied or mutated structs fail valid?/1.

Summary

Types

catalog_status()

@type catalog_status() :: :cataloged | :uncataloged | :unavailable

t()

@type t() :: %PtcRunner.LLM.PreparedModel{
  adapter: module(),
  attestation: PtcRunner.LLM.Requirements.t(),
  catalog_status: catalog_status(),
  construction: binary(),
  requirements: PtcRunner.LLM.Requirements.t(),
  selector: String.t(),
  target: term()
}

Functions

valid?(prepared)

@spec valid?(term()) :: boolean()