Spaces:
Sleeping
Sleeping
Set max_steps to be less
Browse files
agent.py
CHANGED
|
@@ -27,7 +27,7 @@ class CodingAgent:
|
|
| 27 |
name="coding_agent",
|
| 28 |
description="Executes Python code to solve tasks",
|
| 29 |
verbosity_level=LogLevel.INFO,
|
| 30 |
-
max_steps=
|
| 31 |
# add_base_tools=True,
|
| 32 |
additional_authorized_imports=["pandas", "*"],
|
| 33 |
)
|
|
@@ -52,7 +52,7 @@ class WebAgent:
|
|
| 52 |
name="web_agent",
|
| 53 |
description="Browses the web to find information",
|
| 54 |
verbosity_level=LogLevel.INFO,
|
| 55 |
-
max_steps=
|
| 56 |
)
|
| 57 |
|
| 58 |
@property
|
|
@@ -106,7 +106,7 @@ class BudleeAgent:
|
|
| 106 |
planning_interval=5,
|
| 107 |
verbosity_level=LogLevel.DEBUG,
|
| 108 |
# final_answer_checks=[self._check_response],
|
| 109 |
-
max_steps=
|
| 110 |
)
|
| 111 |
|
| 112 |
self._manager_agent.visualize()
|
|
|
|
| 27 |
name="coding_agent",
|
| 28 |
description="Executes Python code to solve tasks",
|
| 29 |
verbosity_level=LogLevel.INFO,
|
| 30 |
+
max_steps=2,
|
| 31 |
# add_base_tools=True,
|
| 32 |
additional_authorized_imports=["pandas", "*"],
|
| 33 |
)
|
|
|
|
| 52 |
name="web_agent",
|
| 53 |
description="Browses the web to find information",
|
| 54 |
verbosity_level=LogLevel.INFO,
|
| 55 |
+
max_steps=3,
|
| 56 |
)
|
| 57 |
|
| 58 |
@property
|
|
|
|
| 106 |
planning_interval=5,
|
| 107 |
verbosity_level=LogLevel.DEBUG,
|
| 108 |
# final_answer_checks=[self._check_response],
|
| 109 |
+
max_steps=2,
|
| 110 |
)
|
| 111 |
|
| 112 |
self._manager_agent.visualize()
|