reduce api call
Browse files
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 |
|