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

Passes when the episode's end state holds every `{path, equals}` of the
case's `expected.state` (`"sim.state"`).

The end state is what the task's `c:Nous.Eval.episode_state/1` returned
after the conversation, read with string keys (`path` segments are
strings, or integers for list positions). Values compare with `==`, so
`1` equals `1.0`.

Attached to simulated cases by `Nous.Eval.Simulator`; it takes no
options. How the episode ended is decided first, as for every simulation
scorer (see "Termination" in `Nous.Eval.Simulator`); an end state that
could not be read is an `:unscoreable` error. `details["mismatches"]`
lists the entries that failed with the actual value.

---

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