Passes when the agent's output equals the expected value.
{Nous.Eval.Scorers.Equals, expected: "Paris", case_sensitive: false}Text is compared after normalization. A structured expected value (map or
list) is compared by deep equality with the structured output (or a JSON
text output, decoded): keys are compared as strings, numbers with ==
(1 equals 1.0), and extra keys fail.
Options
:expected- the expected value; when absent, the case'sexpected["output"]is used, and a case without it is a scorer error:case_sensitive- defaulttrue:trim- trim surrounding whitespace, defaulttrue:collapse_whitespace- collapse whitespace runs to one space, defaultfalse
A failed run fails with reason "run_failed". Structured output against a
text expectation is an :invalid_config error, not a fail.