()
| 598 | |
| 599 | |
| 600 | def create_empty_evaluation() -> Dict: |
| 601 | return { |
| 602 | 'visual_structure_alignment': { |
| 603 | 'chart_type_consistency': {'score': 0, 'reason': ''}, |
| 604 | 'spatial_layout_consistency': {'score': 0, 'reason': ''}, |
| 605 | 'text_element_consistency': {'score': 0, 'reason': ''}, |
| 606 | 'axis_configuration_consistency': {'score': 0, 'reason': ''}, |
| 607 | 'color_scheme_consistency': {'score': 0, 'reason': ''}, |
| 608 | 'style_and_format_consistency': {'score': 0, 'reason': ''}, |
| 609 | 'component_completeness': {'score': 0, 'reason': ''} |
| 610 | }, |
| 611 | 'execution_quality': { |
| 612 | 'visual_clarity': {'score': 0, 'reason': ''}, |
| 613 | 'compositional_balance': {'score': 0, 'reason': ''}, |
| 614 | 'data_integrity': {'score': 0, 'reason': ''} |
| 615 | }, |
| 616 | 'improvement_recommendations': '' |
| 617 | } |
| 618 | |
| 619 | def calculate_overall_score(evaluation: Dict) -> Dict: |
| 620 | # Visual Structure Alignment scores (0-1 scale) |
no outgoing calls
no test coverage detected