Spaces:
Configuration error
Configuration error
Update agent2.py
Browse files
agent2.py
CHANGED
@@ -229,11 +229,11 @@ Your final answer should be as few words as possible, a number, or a comma-separ
|
|
229 |
tools=base_tools,
|
230 |
model=self.model,
|
231 |
add_base_tools=True, # Adds web search, python execution, etc.
|
232 |
-
planning_interval=
|
233 |
additional_authorized_imports=["helium", "requests", "BeautifulSoup", "json"],
|
234 |
step_callbacks=[save_screenshot_callback] if self.driver else [],
|
235 |
-
max_steps=
|
236 |
-
|
237 |
verbosity_level=2,
|
238 |
)
|
239 |
|
|
|
229 |
tools=base_tools,
|
230 |
model=self.model,
|
231 |
add_base_tools=True, # Adds web search, python execution, etc.
|
232 |
+
planning_interval=2, # Plan every 2 steps
|
233 |
additional_authorized_imports=["helium", "requests", "BeautifulSoup", "json"],
|
234 |
step_callbacks=[save_screenshot_callback] if self.driver else [],
|
235 |
+
max_steps=10,
|
236 |
+
description=self.system_prompt,
|
237 |
verbosity_level=2,
|
238 |
)
|
239 |
|