Spaces:
Sleeping
Sleeping
Update
Browse files- theagent.py +3 -2
theagent.py
CHANGED
|
@@ -85,7 +85,7 @@ class BasicAgent:
|
|
| 85 |
max_steps=2,
|
| 86 |
name="execute_python_file",
|
| 87 |
additional_authorized_imports=["os", "pathlib"],
|
| 88 |
-
description="Runs a Python file. Give it the path to the Python file as an argument"
|
| 89 |
)
|
| 90 |
|
| 91 |
manager_agent = CodeAgent(
|
|
@@ -104,7 +104,8 @@ class BasicAgent:
|
|
| 104 |
return v
|
| 105 |
answer = self.agent.run(
|
| 106 |
question
|
| 107 |
-
+ " Please break down the questions into easier sub-tasks.
|
|
|
|
| 108 |
)
|
| 109 |
print("the answer", answer)
|
| 110 |
try:
|
|
|
|
| 85 |
max_steps=2,
|
| 86 |
name="execute_python_file",
|
| 87 |
additional_authorized_imports=["os", "pathlib"],
|
| 88 |
+
description="Runs a Python file. Give it the path to the Python file as an argument",
|
| 89 |
)
|
| 90 |
|
| 91 |
manager_agent = CodeAgent(
|
|
|
|
| 104 |
return v
|
| 105 |
answer = self.agent.run(
|
| 106 |
question
|
| 107 |
+
+ " Please break down the questions into easier sub-tasks."
|
| 108 |
+
+ " Please answer concisely."
|
| 109 |
)
|
| 110 |
print("the answer", answer)
|
| 111 |
try:
|