Cheangys commited on
Commit
64efced
·
verified ·
1 Parent(s): 88141c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def get_stock_price(stock: str) -> str:
86
  return f"Error fetching price for stock '{stock}': {str(e)}"
87
 
88
  @tool
89
- def web_search(query: str) -> str:
90
  """
91
  Fetches the information using DuckDuckGo search.
92
  Args:
@@ -139,7 +139,7 @@ with open("prompts.yaml", 'r') as stream:
139
 
140
  agent = CodeAgent(
141
  model=model,
142
- tools=[final_answer, get_stock_price, get_current_time_in_timezone, web_search], ## add your tools here (don't remove final answer)
143
  max_steps=6,
144
  verbosity_level=1,
145
  grammar=None,
 
86
  return f"Error fetching price for stock '{stock}': {str(e)}"
87
 
88
  @tool
89
+ def duckweb_search(query: str) -> str:
90
  """
91
  Fetches the information using DuckDuckGo search.
92
  Args:
 
139
 
140
  agent = CodeAgent(
141
  model=model,
142
+ tools=[final_answer, get_stock_price, get_current_time_in_timezone, duckweb_search], ## add your tools here (don't remove final answer)
143
  max_steps=6,
144
  verbosity_level=1,
145
  grammar=None,