mirror of
https://github.com/turnstonelabs/turnstone.git
synced 2026-08-24 12:54:48 -06:00
review: update stale duckduckgo-search references to ddgs
This commit is contained in:
committed by
Patrick Buckley
parent
7631b88792
commit
3d02cf66b4
@@ -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)
|
||||
|
||||
@@ -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."
|
||||
),
|
||||
}
|
||||
|
||||
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user