Feat : improvement for search efficiency

This commit is contained in:
martin legrand
2025-03-15 12:37:05 +01:00
parent e909d9d84c
commit 6b4b57e552
3 changed files with 57 additions and 19 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ class webSearch(Tools):
title = result.get("title", "No title")
snippet = result.get("snippet", "No snippet available")
link = result.get("link", "No link available")
results.append(f"Title: {title}\nSnippet: {snippet}\nLink: {link}")
results.append(f"Title:{title}\nSnippet:{snippet}\nLink:{link}")
return "\n\n".join(results)
else:
return "No results found for the query."