Solution ready for review: update repo/main.py
This commit is contained in:
+1
-1
@@ -43,7 +43,7 @@ Score the draft on the following criteria (0–10):
|
|||||||
- Type hints usage
|
- Type hints usage
|
||||||
- Edge case handling
|
- Edge case handling
|
||||||
- Naming conventions
|
- Naming conventions
|
||||||
Return a JSON object with keys: pep8, type_hints, edge_cases, naming. Also provide the weakest criterion and verdict ("ok" if all scores >=7 else "needs_revision").'''
|
Return a JSON object with keys: pep8, type_hints, edge_cases, naming, weakest_criterion, verdict. The verdict should be "ok" if all scores are >=7, otherwise "needs_revision".'''
|
||||||
response = await llm.invoke(prompt)
|
response = await llm.invoke(prompt)
|
||||||
import json
|
import json
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user