Spaces:
Runtime error
Runtime error
Update src/agents/critic.py
Browse files- src/agents/critic.py +11 -1
src/agents/critic.py
CHANGED
|
@@ -1 +1,11 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from app import llm_model
|
| 2 |
+
|
| 3 |
+
def review_result(step, result):
|
| 4 |
+
prompt = f"""You are a code reviewer. Review the following Python implementation.
|
| 5 |
+
|
| 6 |
+
Step: {step}
|
| 7 |
+
Resulting Code:
|
| 8 |
+
{result}
|
| 9 |
+
|
| 10 |
+
Critique the code's correctness, efficiency, and edge cases:"""
|
| 11 |
+
return llm_model(prompt)
|