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", "")}
|
||||
|
||||
+1
-1
@@ -34,7 +34,7 @@ dependencies = [
|
||||
"yarl>=1.17.0,<2.0.0",
|
||||
"cryptography>=46.0.0",
|
||||
"sigstore==4.5.0",
|
||||
"ddgs>=9.5.5,<10.0.0",
|
||||
"ddgs>=9.16.1,<10.0.0",
|
||||
"oauth-cli-kit>=0.1.6,<1.0.0",
|
||||
"loguru>=0.7.3,<1.0.0",
|
||||
"readability-lxml>=0.8.4,<1.0.0",
|
||||
|
||||
Reference in new issue
Block a user