()
| 630 | |
| 631 | |
| 632 | def create_empty_evaluation() -> Dict: |
| 633 | return { |
| 634 | 'visual_structure_alignment': { |
| 635 | 'chart_type_consistency': {'score': 0, 'reason': ''}, |
| 636 | 'spatial_layout_consistency': {'score': 0, 'reason': ''}, |
| 637 | 'text_element_consistency': {'score': 0, 'reason': ''}, |
| 638 | 'axis_configuration_consistency': {'score': 0, 'reason': ''}, |
| 639 | 'color_scheme_consistency': {'score': 0, 'reason': ''}, |
| 640 | 'style_and_format_consistency': {'score': 0, 'reason': ''}, |
| 641 | 'component_completeness': {'score': 0, 'reason': ''} |
| 642 | }, |
| 643 | 'execution_quality': { |
| 644 | 'visual_clarity': {'score': 0, 'reason': ''}, |
| 645 | 'compositional_balance': {'score': 0, 'reason': ''}, |
| 646 | 'data_integrity': {'score': 0, 'reason': ''} |
| 647 | }, |
| 648 | 'improvement_recommendations': '' |
| 649 | } |
| 650 | |
| 651 | def calculate_overall_score(evaluation: Dict) -> Dict: |
| 652 | # Visual Structure Alignment scores (0-1 scale) |
no outgoing calls
no test coverage detected