Spaces:
Runtime error
Runtime error
Create executor.py
Browse files- agents/executor.py +6 -0
agents/executor.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from tools.code_runner import run_python_code
|
2 |
+
|
3 |
+
def execute_step(step, memory):
|
4 |
+
if "implement" in step.lower():
|
5 |
+
return run_python_code(f"# Code attempt to {step}")
|
6 |
+
return f"Executed: {step} (simulated)"
|