documentlanguagemodel Public
| 1 | """Typed errors for the eval harness.""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | |
| 6 | class EvalError(Exception): |
| 7 | """Base for `dlm.eval` errors.""" |
| 8 | |
| 9 | |
| 10 | class ProbeFormatError(EvalError): |
| 11 | """A probe prompt was malformed (e.g., `!probe` header without body).""" |
| 12 | |
| 13 | |
| 14 | class RetentionSliceError(EvalError): |
| 15 | """The retention slice couldn't be built (empty corpus, bad seed, etc.).""" |