5 Commits

Author SHA1 Message Date
Jason Cat
edcb78fb87
fix(search): surface DuckDuckGo search failures instead of reporting an empty result (#6648)
* fix(search): surface DuckDuckGo failures instead of reporting an empty result

DDGS execution failures (rate limits, timeouts, blocked HTML/vqd extraction,
SDK errors, and the missing ddgs dependency) were caught in _search_text and
converted into an empty list, so web_search reported "No results found" for
every failure. The agent then read an outage as a query that matched nothing
and rewrote the query instead of trying an alternative.

_search_text now raises DDGSearchError carrying the exception type and message
for those failures, and web_search_tool answers them with a structured
"DuckDuckGo search failed: ..." error. A genuinely empty result set (the SDK's
exact DDGSException("No results found.") sentinel) still returns the existing
"No results found" response, and tool_result_meta classifies the two cases
differently (transient/config vs no_results).

Tests: tests/test_ddg_search_tools.py (three new failure tests red on main),
tests/test_agent_guidance_check.py, tests/test_tool_result_meta.py; ruff check
and ruff format --check clean.

* fix(search): keep DDGS client construction inside the error boundary

---------

Co-authored-by: Willem Jiang <willem.jiang@gmail.com>
2026-10-15 15:06:51 +08:00
Grapette.L
63401d79fd
fix(community): reject bool and fractional web-search max_results like image search does (#5852) 2026-09-25 21:43:48 +08:00
Yeager0204
434d9647d7
fix(search): coerce DDG result limits from environment variables (#5792)
* fix(search): coerce DDG result limits from environment variables

* fix(search): fall back for invalid DDG result limits

---------

Co-authored-by: kwsYegar <331533331+kwsYegar@users.noreply.github.com>
2026-09-24 09:45:16 +08:00
Ryker_Feng
8c8c5ac246
feat(search): add native recency filters (#5099)
* feat(search): add native recency filters

* fix(search): enforce recency across backends

* docs(search): record recency provider contract
2026-08-30 21:25:05 +08:00
Nan Gao
10c1d9f417
fix(search): fix DDGS Wikipedia region handling (#3423) 2026-06-08 07:59:50 +08:00