Skip to main content

Module provenance

Module provenance 

Source
Expand description

AI Provenance snapshot.

Provenance records the immutable model/provider configuration used for a Run.

§How to use this object

  • Create Provenance when Libra has chosen the provider, model, and generation parameters for a run.
  • Populate optional sampling and parameter fields before persistence.
  • Keep it immutable after writing; usage and cost belong elsewhere.

§How it works with other objects

  • Run is the canonical owner via run_id.
  • RunUsage stores tokens and cost for the same run.

§How Libra should call it

Libra should write Provenance once near run start, then later write RunUsage when consumption totals are known. Do not backfill usage onto the provenance snapshot.

Structs§

Provenance
Immutable provider/model configuration for one execution attempt.