Spaces:
Configuration error
Configuration error
Update agent2.py
Browse files
agent2.py
CHANGED
@@ -236,6 +236,8 @@ Your final answer should be as few words as possible, a number, or a comma-separ
|
|
236 |
description=self.system_prompt,
|
237 |
verbosity_level=2,
|
238 |
)
|
|
|
|
|
239 |
|
240 |
def initialize_browser(self):
|
241 |
"""Initialize browser for web automation tasks"""
|
|
|
236 |
description=self.system_prompt,
|
237 |
verbosity_level=2,
|
238 |
)
|
239 |
+
self.agent.tools = [tool for tool in self.agent.tools
|
240 |
+
if not isinstance(tool, DuckDuckGoSearchTool)]
|
241 |
|
242 |
def initialize_browser(self):
|
243 |
"""Initialize browser for web automation tasks"""
|