samih-7 commited on
Commit
dbf9127
·
verified ·
1 Parent(s): 5018aa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,9 +11,9 @@ search_tool = DuckDuckGoSearchTool(max_results=5)
11
 
12
  @tool
13
  def search_web(query:str)-> str:
14
- """A tool that runs a DuckDuckGo search and returns a formatted result."
15
  Args:
16
- query: What to search for.
17
  """
18
  try:
19
  results = search_tool(query)
@@ -59,7 +59,7 @@ with open("prompts.yaml", 'r') as stream:
59
 
60
  agent = CodeAgent(
61
  model=model,
62
- tools=[final_answer, get_current_time_in_timezone], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,
 
11
 
12
  @tool
13
  def search_web(query:str)-> str:
14
+ """A tool that runs a DuckDuckGo search and returns a formatted result.
15
  Args:
16
+ query: A string representing the query to search for.
17
  """
18
  try:
19
  results = search_tool(query)
 
59
 
60
  agent = CodeAgent(
61
  model=model,
62
+ tools=[final_answer, get_current_time_in_timezone, search_tool], ## add your tools here (don't remove final answer)
63
  max_steps=6,
64
  verbosity_level=1,
65
  grammar=None,