fix(web): require ddgs 9.16.1 search fixes

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-25 01:52:23 +08:00
1 parent e1ca490d73
commit 3bd67254ba
2 files changed
+1 -3

No files matched your search

-2
View File
@@ -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", "")}