Skip to main content

Module error

Module error 

Source
Expand description

The crate’s public error type, EvalError.

eval-core is built to lift into a standalone, publishable crate, so its PUBLIC fallible paths (load_cases, Agent::run, regex compilation in the built-in scorer) surface a concrete, std::error::Error-implementing type rather than anyhow. Internal helpers (e.g. the HTML report generator) may still use anyhow for convenience; only the public signatures expose EvalError.

Every fallible third-party source has a From impl (std::io::Error, ron::error::SpannedError, regex::Error) so the ? operator threads cleanly, and the agent-side variant (EvalError::Agent) lets a host wrap whatever its own run failure was as a string.

Enums§

EvalError
The error type for eval-core’s public API.