ExAgent.Eval.Case (ExAgent v2.3.0)

View Source

One evaluation case: a name, the input and what to expect.

Summary

Functions

Build a case. Options: :expected (what evaluators compare against), :metadata (any map, for custom evaluators) and :run_opts (merged into the run options for this case, for example deps:).

Types

t()

@type t() :: %ExAgent.Eval.Case{
  expected: term(),
  input: ExAgent.prompt(),
  metadata: map(),
  name: String.t(),
  run_opts: keyword()
}

Functions

new(name, input, opts \\ [])

@spec new(String.t(), ExAgent.prompt(), keyword()) :: t()

Build a case. Options: :expected (what evaluators compare against), :metadata (any map, for custom evaluators) and :run_opts (merged into the run options for this case, for example deps:).