HallD commited on
Commit
1bdc934
·
verified ·
1 Parent(s): 321ff82

Update app.py

Browse files

corrected web search name

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
- def web_serach(query: str) -> str:
38
  """A tool that searched the web using duckduckgo search and returns a summary to the user
39
  Args:
40
  query: A concise string sentence to input into the DuckDuckGo search
@@ -68,7 +68,7 @@ with open("prompts.yaml", 'r') as stream:
68
 
69
  agent = CodeAgent(
70
  model=model,
71
- tools=[final_answer, get_current_time_in_timezone, web_serach], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,
 
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
  @tool
37
+ def web_search(query: str) -> str:
38
  """A tool that searched the web using duckduckgo search and returns a summary to the user
39
  Args:
40
  query: A concise string sentence to input into the DuckDuckGo search
 
68
 
69
  agent = CodeAgent(
70
  model=model,
71
+ tools=[final_answer, get_current_time_in_timezone, web_search], ## add your tools here (don't remove final answer)
72
  max_steps=6,
73
  verbosity_level=1,
74
  grammar=None,