Aggregated result from running an extractor over multiple files. ``stats`` accumulates SUCCESS outcomes plus batch-level token counts. In batch mode, token counts are aggregate (not per-file). Per-file results are delivered via the ``on_result`` callback; only aggregate counters an
| 91 | |
| 92 | @dataclass |
| 93 | class BatchResult: |
| 94 | """Aggregated result from running an extractor over multiple files. |
| 95 | |
| 96 | ``stats`` accumulates SUCCESS outcomes plus batch-level token counts. |
| 97 | In batch mode, token counts are aggregate (not per-file). |
| 98 | |
| 99 | Per-file results are delivered via the ``on_result`` callback; only |
| 100 | aggregate counters and stats are kept here. |
| 101 | """ |
| 102 | |
| 103 | stats: ExtractionStats = field(default_factory=ExtractionStats) |
| 104 | n_succeeded: int = 0 |
| 105 | n_skipped: int = 0 |
| 106 | n_failed: int = 0 |
| 107 | interrupted: bool = False |
| 108 | |
| 109 | |
| 110 | @dataclass(frozen=True) |
no outgoing calls