# `Nous.Eval.Scorers.Equals`
[🔗](https://github.com/nyo16/nous/blob/v0.21.1/lib/nous/eval/scorers/equals.ex#L1)

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's
    `expected["output"]` is used, and a case without it is a scorer error
  * `:case_sensitive` - default `true`
  * `:trim` - trim surrounding whitespace, default `true`
  * `:collapse_whitespace` - collapse whitespace runs to one space, default
    `false`

A failed run fails with reason `"run_failed"`. Structured output against a
text expectation is an `:invalid_config` error, not a fail.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
