MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / create_fallback_evaluation

Function create_fallback_evaluation

autofigure/generator.py:1353–1364  ·  view source on GitHub ↗
(default_score: float = 5.0)

Source from the content-addressed store, hash-verified

1351
1352
1353def create_fallback_evaluation(default_score: float = 5.0) -> Dict:
1354 return {
1355 "scores": {
1356 "aesthetic_design": default_score,
1357 "content_fidelity": default_score,
1358 "placeholder_usage": default_score
1359 },
1360 "overall_quality": default_score,
1361 "critique_summary": "Unable to generate detailed critique due to JSON parsing error. Using default evaluation.",
1362 "specific_issues": ["JSON parsing failed, unable to provide specific analysis"],
1363 "improvement_suggestions": ["Please check LLM response format"]
1364 }
1365
1366
1367def extract_json_robustly(response_text: str) -> Optional[Dict]:

Callers 1

evaluate_codeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected