From 3d02cf66b40bfdd4e6e8403780e7655e45e3feae Mon Sep 17 00:00:00 2001 From: Patrick Buckley Date: Mon, 23 Mar 2026 16:04:30 -0700 Subject: [PATCH] review: update stale duckduckgo-search references to ddgs --- tests/test_web_search.py | 2 +- turnstone/core/session.py | 2 +- turnstone/core/web_search.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_web_search.py b/tests/test_web_search.py index 6af25a05..936eaed7 100644 --- a/tests/test_web_search.py +++ b/tests/test_web_search.py @@ -84,7 +84,7 @@ class TestTavilyClient: class TestDuckDuckGoClient: def test_integration_via_mock_ddgs(self): - """Patch the duckduckgo_search import inside DuckDuckGoClient.search.""" + """Patch the ddgs import inside DuckDuckGoClient.search.""" mock_ddgs = MagicMock() mock_ddgs.__enter__ = MagicMock(return_value=mock_ddgs) mock_ddgs.__exit__ = MagicMock(return_value=False) diff --git a/turnstone/core/session.py b/turnstone/core/session.py index 8bcbd5fd..958be25f 100644 --- a/turnstone/core/session.py +++ b/turnstone/core/session.py @@ -2803,7 +2803,7 @@ class ChatSession: "needs_approval": False, "error": ( "Error: No web search backend available. " - "Install duckduckgo-search (`pip install duckduckgo-search`), " + "Install the ddg extra (`pip install turnstone[ddg]`), " "configure a Tavily API key, or set tools.web_search_backend." ), } diff --git a/turnstone/core/web_search.py b/turnstone/core/web_search.py index 859c1b53..dd91bb49 100644 --- a/turnstone/core/web_search.py +++ b/turnstone/core/web_search.py @@ -3,7 +3,7 @@ ``web_search`` is an abstract capability with swappable clients: * **TavilyClient** — paid, high quality, requires API key -* **DuckDuckGoClient** — free, no API key, uses ``duckduckgo-search`` +* **DuckDuckGoClient** — free, no API key, uses ``ddgs`` Auto-detection (default): Tavily if key present, else DDG if installed, else ``None`` (tool removed from tool list).