Skip to content

Your lightweight open-source personal agent.

fix(web): require ddgs 9.16.1 search fixes

chengyongru3bd67254ba87
diff --git a/nanobot/agent/tools/web.py b/nanobot/agent/tools/web.py
index 256771ca5..62d8789ec 100644
--- a/nanobot/agent/tools/web.py
+++ b/nanobot/agent/tools/web.py
@@ -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", "")}
diff --git a/pyproject.toml b/pyproject.toml
index 4910e4866..53c266276 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -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",