Aludel.Evals.SuitePolicy (aludel v0.7.0)

Copy Markdown View Source

Immutable version of a quality policy attached to an evaluation suite.

Creating a new policy produces the next suite-local version. Existing suite runs keep their policy association so retries and exports use the same evaluation contract that was active when the run started.

Summary

Functions

Builds a changeset for a versioned suite policy.

Types

t()

@type t() :: %Aludel.Evals.SuitePolicy{
  __meta__: term(),
  definition: term(),
  id: term(),
  inserted_at: term(),
  suite: term(),
  suite_id: term(),
  suite_runs: term(),
  updated_at: term(),
  version: term()
}

Functions

changeset(policy, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Builds a changeset for a versioned suite policy.