The outcome of Nous.Eval.Optimizer.run/2.
:verdict-:acceptedor:rejected:reasons- why, in plain words (always set for a rejection):profile- the candidate that went to the test split (with the optimizer's provenance; the stored version when it was persisted), ornilwhen the search never found a candidate better than the seed:seed_profile- the agent's base text as a profile:comparison-Nous.Eval.Compareof the seed's test run (baseline) against the candidate's (the no-regression direction):improvement- the comparison the other way round: a:regressionverdict there means the seed is significantly worse than the candidate, i.e. the candidate improves on it:sign_test-%{b:, c:, p_value:}: test cases the candidate improved (b) and worsened (c) by pass rate, and the exact one-sided sign-test p-value (McNemar's exact binomial halved whenb > c, else1.0). The improvement gate needs both a:regressionverdict in:improvementand this p below alpha, so at alpha 0.05 the smallest test split that can pass is 5 cases, all improved (p = 0.5^5 = 0.03125):guard- the guard filter's verdict on the test split's guard cases (:ok,:skippedor{:error, reason}):report- theNous.Eval.ProfileReport(render it withNous.Eval.ProfileReport.render/2), ornilwithout a candidate:candidates/:rejections- the strategy's pool and rejection log. A rejection made after the reflector proposed text carriesproposal: %{component => text}with the rejected proposal:steps/:stop_reason- search steps run and why the search ended (:max_steps,:budget_exhausted, ...):budget- limits, spend and reserve:run_ids- everyNous.Eval.Runthe optimization produced:stored?- whether the accepted profile was persisted
Summary
Types
@type t() :: %Nous.Eval.Optimizer.Result{ budget: map(), candidates: [Nous.Eval.Optimizer.Candidate.t()], comparison: Nous.Eval.Compare.t() | nil, guard: :ok | :skipped | {:error, term()}, improvement: Nous.Eval.Compare.t() | nil, profile: Nous.Profile.t() | nil, reasons: [String.t()], rejections: [map()], report: Nous.Eval.ProfileReport.t() | nil, run_ids: [String.t()], seed_profile: Nous.Profile.t(), sign_test: %{b: non_neg_integer(), c: non_neg_integer(), p_value: float()} | nil, steps: non_neg_integer(), stop_reason: term(), stored?: boolean(), verdict: :accepted | :rejected }