ExAgent.Eval.Online.Durable (ExAgent v3.0.0)

View Source

Resolve online evaluators for a host's ExAgent.Jobs.Durable worker.

Stability — Candidate.

In the worker's resolve/2, match the evaluator name and exact version, then return resolve/5 for that evaluator. Use a dedicated worker and queue. The only effect of this background job is evaluation, which uses the safe sample captured by the host. The target's run, tools and C7 record are only sources of confirmed evidence. Durable job admission retains evaluation input text only when the host opted in and explicitly supplied it.

Summary

Functions

Erase durable grades for an evaluated run in the evaluator's dedicated Jobs scope. Use the exact evaluator name and version passed to the collector. Stop admission for this run first. In-flight or unconfirmed result exports keep the receipt. The host manages copies already accepted by its exporter.

Bind a versioned evaluator to the namespace of the job being resolved. policy is a versioned policy reference for the evaluation tool. The evaluator has its own wall-time and reviewer token budget. The same scoring options as ExAgent.Eval.Online.start_link/1 apply, including a separate :content opt-in for the worker. The reference must match the evaluator's name and version. Pass the same :version here if the queue explicitly sets it. Configure the same budgets at admission and resolution.

Functions

erase_run(config, run_id)

@spec erase_run({ExAgent.Jobs.Durable.t(), String.t(), String.t()}, String.t()) ::
  ExAgent.Retention.outcome() | {:error, term()}

Erase durable grades for an evaluated run in the evaluator's dedicated Jobs scope. Use the exact evaluator name and version passed to the collector. Stop admission for this run first. In-flight or unconfirmed result exports keep the receipt. The host manages copies already accepted by its exporter.

resolve(namespace, ref, evaluator, policy, opts \\ [])

@spec resolve(String.t(), map(), ExAgent.Eval.Evaluator.t(), map(), keyword()) ::
  {:ok, ExAgent.t(), map(), keyword()} | {:error, :unsupported_store_capability}

Bind a versioned evaluator to the namespace of the job being resolved. policy is a versioned policy reference for the evaluation tool. The evaluator has its own wall-time and reviewer token budget. The same scoring options as ExAgent.Eval.Online.start_link/1 apply, including a separate :content opt-in for the worker. The reference must match the evaluator's name and version. Pass the same :version here if the queue explicitly sets it. Configure the same budgets at admission and resolution.