| 31 | * Focused evaluation runner |
| 32 | */ |
| 33 | export class FocusedEvaluationRunner { |
| 34 | private client?: DocumentEngineClient; |
| 35 | private evaluator: ToolUsageEvaluator; |
| 36 | private reporter: EvaluationReporter; |
| 37 | |
| 38 | // Test documents configuration |
| 39 | private readonly testDocuments: TestDocument[] = [ |
| 40 | { |
| 41 | filePath: join(process.cwd(), 'assets', 'contract.pdf'), |
| 42 | documentId: 'doc-12345', |
| 43 | title: 'Sample Contract Document', |
| 44 | }, |
| 45 | { |
| 46 | filePath: join(process.cwd(), 'assets', 'form.pdf'), |
| 47 | documentId: 'doc-form-123', |
| 48 | title: 'Sample Form Document', |
| 49 | }, |
| 50 | { |
| 51 | filePath: join(process.cwd(), 'assets', 'ocr.pdf'), |
| 52 | documentId: 'doc-scan-123', |
| 53 | title: 'Sample Scanned Document', |
| 54 | }, |
| 55 | { |
| 56 | filePath: join(process.cwd(), 'assets', 'report.pdf'), |
| 57 | documentId: 'doc-report-456', |
| 58 | title: 'Sample Report Document', |
| 59 | }, |
| 60 | { |
| 61 | filePath: join(process.cwd(), 'assets', 'A.pdf'), |
| 62 | documentId: 'doc-111', |
| 63 | title: 'Sample A Document', |
| 64 | }, |
| 65 | { |
| 66 | filePath: join(process.cwd(), 'assets', 'B.pdf'), |
| 67 | documentId: 'doc-222', |
| 68 | title: 'Sample B Document', |
| 69 | }, |
| 70 | ]; |
| 71 | |
| 72 | // Layer names used in evaluation scenarios (excluding non-existent-layer for error testing) |
| 73 | private readonly testLayers: string[] = [ |
| 74 | 'additional-pages-layer', |
| 75 | 'analysis-layer', |
| 76 | 'annotation-layer', |
| 77 | 'approval-layer', |
| 78 | 'approved-layer', |
| 79 | 'comments-layer', |
| 80 | 'completed-layer', |
| 81 | 'data-layer', |
| 82 | 'draft-layer', |
| 83 | 'edit-layer', |
| 84 | 'edited-layer', |
| 85 | 'final-layer', |
| 86 | 'final-redaction-layer', |
| 87 | 'finance-layer', |
| 88 | 'markup-layer', |
| 89 | 'metadata-layer', |
| 90 | 'ocr-layer', |
nothing calls this directly
no outgoing calls
no test coverage detected