Nous.Eval.ScorerError exception (nous v0.21.1)

Copy Markdown View Source

A scorer failed to produce a verdict. It says nothing about the agent: a sample with any scorer error is :error, never :pass or :fail, and an eval run with errors exits non-zero in CI.

kind is one of:

  • :raised - the scorer raised, threw or exited
  • :timeout - the scorer exceeded its time limit
  • :invalid_config - bad options, or a required scorer skipped
  • :missing_trace - the trace needed is absent or truncated
  • :judge_unparseable / :judge_out_of_range / :judge_call_failed - the LLM judge's answer could not be used
  • :budget_exhausted - a model-graded scorer had no budget left
  • :non_finite - a score value was NaN, infinite or outside 0.0..1.0
  • :unscoreable - the sample is not evidence about the agent: a simulated episode ended on a simulator or setup failure, or an attack that could not run to an end (see Nous.Eval.Simulator)

Summary

Functions

Every error kind.

Types

kind()

@type kind() ::
  :raised
  | :timeout
  | :invalid_config
  | :missing_trace
  | :judge_unparseable
  | :judge_out_of_range
  | :judge_call_failed
  | :budget_exhausted
  | :non_finite
  | :unscoreable

t()

@type t() :: %Nous.Eval.ScorerError{
  __exception__: true,
  details: map(),
  kind: kind(),
  reason: String.t() | nil,
  scorer: String.t()
}

Functions

kinds()

@spec kinds() :: [kind()]

Every error kind.