Dsxir. Optimizer. GEPA. Trial
(dsxir v0.3.0)
Copy Markdown
One-trial pipeline: select operator, apply, build child, evaluate, admit.
Catches the framework-recognised exception classes at its boundary and
surfaces them as a :error-status trial record (degraded sampler) rather
than crashing the caller.
Summary
Types
@type args() :: %{ sampler: Dsxir.Optimizer.GEPA.Sampler.t(), trial_idx: non_neg_integer(), metric: Dsxir.Metric.t() | nil }
Functions
@spec run(args()) :: {:ok, Dsxir.Optimizer.GEPA.Sampler.t(), trial_result :: map()}
Runs one trial: samples an operator, applies it, evaluates the child, and
admits it to the population. Recognised framework exceptions are caught and
surfaced as a :error-status trial (sampler marked degraded) instead of
crashing the caller.