#13366: Add baidu search as web tools provider
docs
agents
stale
size: S
Cluster:
Web Search Provider Enhancements
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR adds a new `baidu` option to the `web_search` tool, including configuration types/schema updates and a new Baidu Search API request path in `src/agents/tools/web-search.ts`. Docs are updated to mention Baidu as a provider and include setup examples.
The integration follows the same provider-selection pattern as Brave/Perplexity/Grok, but the Baidu response payload currently diverges from existing web_search conventions around marking and wrapping untrusted external content, and the Baidu API key is not treated as a sensitive field in the runtime config schema.
<h3>Confidence Score: 3/5</h3>
- This PR is close to mergeable but has a couple of security/consistency issues to address first.
- Core provider wiring and schema/type updates look coherent, but Baidu results omit the existing `externalContent` untrusted marker convention and the Baidu API key is not marked sensitive in the runtime schema, which can lead to unsafe handling and accidental secret exposure.
- src/agents/tools/web-search.ts, src/config/zod-schema.agent-runtime.ts
<sub>Last reviewed commit: ab2344f</sub>
<!-- greptile_other_comments_section -->
<!-- /greptile_comment -->
Most Similar PRs
#13814: feat(web-search): add ZAI Search (zsearch) provider
by strelov1 · 2026-02-11
79.5%
#8715: fix(web-search): safer provider resolution & Perplexity auto-detection
by abhijeet117 · 2026-02-04
77.4%
#14788: feat: Add DuckDuckGo search provider with Tor support
by emadomedher · 2026-02-12
76.8%
#6743: feat(web-search): add Tavily search provider support
by 3927o · 2026-02-02
76.6%
#13370: Tools: rewrite Grok parser, add Tavily provider, multi-provider con...
by a-anand-91119 · 2026-02-10
75.7%
#12304: feat: add DeSearch as web_search provider
by tatjr13 · 2026-02-09
75.6%
#17729: fix(configure): update web tools hint to reflect all search providers
by raktim-mondol · 2026-02-16
75.5%
#10839: feat(web-search): add Bocha as a web search provider
by xiekeyang · 2026-02-07
75.4%
#13386: feat(web-search): add Nimble Web Search API provider
by ilchemla · 2026-02-10
75.0%
#19876: feat(web-search): add SerpAPI search provider support
by nksolar-tianjin · 2026-02-18
74.3%