Gab-Chung commited on
Commit
1287269
·
verified ·
1 Parent(s): 958a689

updated 'prompt' argument in web_search function

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
22
  def web_search(prompt: str) -> str:
23
  """ A tool that searches a given prompt from the internet and returns best 5 results
24
  Args:
25
- prompt (str): the query the user inputs
26
  """
27
  search_tool = DuckDuckGoSearchTool(max_results=5)
28
  return search_tool(prompt)
 
22
  def web_search(prompt: str) -> str:
23
  """ A tool that searches a given prompt from the internet and returns best 5 results
24
  Args:
25
+ prompt: the query the user inputs (e.g., what is the biggest country in the world).
26
  """
27
  search_tool = DuckDuckGoSearchTool(max_results=5)
28
  return search_tool(prompt)