Paperbag commited on
Commit
186221a
·
1 Parent(s): 3b80656

reduce api call

Browse files
Files changed (1) hide show
  1. agent.py +1 -1
agent.py CHANGED
@@ -45,7 +45,7 @@ def web_search(keywords: str, max_results:int = 5) -> str:
45
  output = ""
46
  results = ddgs.text(keywords, max_results = max_results)
47
  for result in results:
48
- output += f"{result['title']}\n{result['body']}\n{result['url']}\n\n"
49
  return(output)
50
 
51
 
 
45
  output = ""
46
  results = ddgs.text(keywords, max_results = max_results)
47
  for result in results:
48
+ output += f"Results: {result['title']}\n{result['body']}\n{result['url']}\n\n"
49
  return(output)
50
 
51