ExAgent.Eval.Suite behaviour (ExAgent v3.0.0)

View Source

Callbacks for a named suite discovered by mix exagent.eval.

The suite provides its name, target, fixture directory and run options.

Stability — Stable.

Summary

Callbacks

Resolve a source identifier passed to the candidate mix exagent.eval.capture task. Resolve it within the host's authorized Store scope and return that run's diagnostic continuation read with capture options such as the case name, redactor and expected answer.

Supply human labels to host-owned evaluation tooling.

Functions

Declare the suite with a required :name for mix exagent.eval discovery.

Callbacks

capture(t)

(candidate API) (optional)
@callback capture(String.t()) ::
  {:ok, ExAgent.Continuation.run_details(), keyword()} | {:error, term()}

Resolve a source identifier passed to the candidate mix exagent.eval.capture task. Resolve it within the host's authorized Store scope and return that run's diagnostic continuation read with capture options such as the case name, redactor and expected answer.

cases()

@callback cases() :: [ExAgent.Eval.Case.t()]

evaluators()

@callback evaluators() :: [ExAgent.Eval.Evaluator.t()]

labels()

(candidate API) (optional)
@callback labels() :: map()

Supply human labels to host-owned evaluation tooling.

options()

(optional)
@callback options() :: keyword()

target(keyword)

@callback target(keyword()) :: ExAgent.t() | function()

Functions

__using__(opts)

(macro)

Declare the suite with a required :name for mix exagent.eval discovery.