Aludel.Runs.Run (aludel v0.1.18)

Copy Markdown View Source

Schema for managing runs.

A run represents an execution of a prompt version with specific variable values across multiple providers.

Summary

Functions

Changeset for creating or updating a run.

Types

t()

@type t() :: %Aludel.Runs.Run{
  __meta__: term(),
  id: term(),
  inserted_at: term(),
  name: term(),
  prompt_version: term(),
  prompt_version_id: term(),
  provider_ids: term(),
  run_results: term(),
  updated_at: term(),
  variable_values: term()
}

Functions

changeset(run, attrs)

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

Changeset for creating or updating a run.

Validates that prompt_version_id and variable_values are present.