Spaces:
Runtime error
Runtime error
Update src/agents/executor.py
Browse files- src/agents/executor.py +10 -1
src/agents/executor.py
CHANGED
|
@@ -1 +1,10 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from app import llm_model
|
| 2 |
+
|
| 3 |
+
def execute_step(step):
|
| 4 |
+
prompt = f"""You are an expert Python developer.
|
| 5 |
+
Generate Python code for this step:
|
| 6 |
+
|
| 7 |
+
Step: {step}
|
| 8 |
+
|
| 9 |
+
Output only code, no explanations."""
|
| 10 |
+
return llm_model(prompt)
|