Coool2 commited on
Commit
92cd837
·
1 Parent(s): 9aa3841

Update agent2.py

Browse files
Files changed (1) hide show
  1. agent2.py +2 -0
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"""