| 14 | * Options for answer normalization and comparison |
| 15 | */ |
| 16 | export interface NormalizationOptions { |
| 17 | /** |
| 18 | * Tolerance for floating-point number comparison (e.g., 1e-6). |
| 19 | * @default 1e-6 |
| 20 | */ |
| 21 | tolerance?: number |
| 22 | |
| 23 | /** |
| 24 | * Whether string comparison should be case-sensitive. |
| 25 | * @default false |
| 26 | */ |
| 27 | caseSensitive?: boolean |
| 28 | |
| 29 | /** |
| 30 | * Allow currency symbols ($, €, etc.) in number extraction. |
| 31 | * @default true |
| 32 | */ |
| 33 | allowCurrency?: boolean |
| 34 | |
| 35 | /** |
| 36 | * Allow percent signs (%) in number extraction (will divide by 100). |
| 37 | * @default true |
| 38 | */ |
| 39 | allowPercent?: boolean |
| 40 | |
| 41 | /** |
| 42 | * Number of decimal places to round to for number comparison. |
| 43 | * If specified, overrides tolerance-based comparison. |
| 44 | */ |
| 45 | decimalPlaces?: number |
| 46 | } |
| 47 | |
| 48 | interface NormalizedResult { |
| 49 | success: boolean |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…