()
| 659 | |
| 660 | |
| 661 | def create_empty_evaluation() -> Dict: |
| 662 | return { |
| 663 | 'visual_structure_alignment': { |
| 664 | 'chart_type_consistency': {'score': 0, 'reason': ''}, |
| 665 | 'spatial_layout_consistency': {'score': 0, 'reason': ''}, |
| 666 | 'text_element_consistency': {'score': 0, 'reason': ''}, |
| 667 | 'axis_configuration_consistency': {'score': 0, 'reason': ''}, |
| 668 | 'color_scheme_consistency': {'score': 0, 'reason': ''}, |
| 669 | 'style_and_format_consistency': {'score': 0, 'reason': ''}, |
| 670 | 'component_completeness': {'score': 0, 'reason': ''} |
| 671 | }, |
| 672 | 'execution_quality': { |
| 673 | 'visual_clarity': {'score': 0, 'reason': ''}, |
| 674 | 'compositional_balance': {'score': 0, 'reason': ''}, |
| 675 | 'data_integrity': {'score': 0, 'reason': ''} |
| 676 | }, |
| 677 | 'data_alignment': {'score': 0, 'reason': 'Data alignment failed'}, |
| 678 | 'improvement_recommendations': '' |
| 679 | } |
| 680 | |
| 681 | def calculate_overall_score(evaluation: Dict) -> Dict: |
| 682 | # Visual Structure Alignment scores (0-2 scale) |
no outgoing calls
no test coverage detected