Nous.Eval.Simulator.Scorers.State (nous v0.21.1)

Copy Markdown View Source

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 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.