mchabrol commited on
Commit
d7fceba
·
verified ·
1 Parent(s): c211edd

add web_search tool

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,6 +34,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  except Exception as e:
35
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
36
 
 
37
 
38
  final_answer = FinalAnswerTool()
39
 
@@ -56,7 +57,7 @@ with open("prompts.yaml", 'r') as stream:
56
 
57
  agent = CodeAgent(
58
  model=model,
59
- tools=[final_answer, multiply, get_current_time_in_timezone, image_generation_tool], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,
 
34
  except Exception as e:
35
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
36
 
37
+ web_search = DuckDuckGoSearchTool()
38
 
39
  final_answer = FinalAnswerTool()
40
 
 
57
 
58
  agent = CodeAgent(
59
  model=model,
60
+ tools=[final_answer, multiply, get_current_time_in_timezone, image_generation_tool, web_search], ## add your tools here (don't remove final answer)
61
  max_steps=6,
62
  verbosity_level=1,
63
  grammar=None,