mix nous.profile.promote (nous v0.21.1)

Copy Markdown View Source

Points label LABEL of profile name NAME at a profile, by appending an entry to the label's history in the eval store (Nous.Eval.Store.put_profile_label/4).

mix nous.profile.promote --store file:priv/eval support_agent production 7
mix nous.profile.promote --store file:priv/eval support_agent production sha256:9f2c…
mix nous.profile.promote --store file:priv/eval support_agent staging support_agent@production
mix nous.profile.promote --store file:priv/eval support_agent production priv/profiles/support.json

REF is a version number under NAME, sha256:<hex>, name@label, name#version, or a profile file, which is stored first (under NAME; storing is idempotent, so a file already stored keeps its version). The profile must be stored under NAME.

Promotion is the human step after reading the profile's Nous.Eval.ProfileReport (mix nous.profile.diff): nothing promotes a profile automatically. Labels are append-only, so a rollback is another promotion and the history is kept. Apps resolve a label with Nous.Eval.Profiles.fetch/2; for production, prefer exporting the promoted profile to a reviewed file loaded with Nous.Profile.load!/1.

Options

  • --store SPEC - file:DIR, sqlite:PATH or duckdb:PATH (required)

Exits with status 2 on an operational error (bad arguments, unknown profile, invalid name or label, store failure).