fix(web): require ddgs 9.16.1 search fixes
This commit is contained in:
1 parent
e1ca490d73
commit
3bd67254ba
2 files changed
+1
-3
No files matched your search
@@ -1192,8 +1192,6 @@ class WebSearchTool(Tool):
|
||||
asyncio.to_thread(ddgs.text, query, max_results=n),
|
||||
timeout=self.config.timeout,
|
||||
)
|
||||
if not raw:
|
||||
return f"No usable search entries returned for: {query}"
|
||||
raw_items = cast(list[dict[str, Any]], raw)
|
||||
items: list[dict[str, Any]] = [
|
||||
{"title": r.get("title", ""), "url": r.get("href", ""), "content": r.get("body", "")}
|
||||
|
||||
Reference in new issue
Block a user