You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(tools): add SearXNG web search provider (#214)
## Summary
- Add SearXNG as a third web search provider alongside Brave and
DuckDuckGo
- Add explicit `provider` field to `WebSearchConfig` for user choice
(`"brave"`, `"searxng"`, `"ddg"`)
- Add `api_url` field for self-hosted SearXNG instance URL
- Auto-detection fallback: `api_url` set → SearXNG, `api_key` set →
Brave, else → DuckDuckGo
- Env overrides: `ZEPTOCLAW_TOOLS_WEB_SEARCH_PROVIDER`,
`ZEPTOCLAW_TOOLS_WEB_SEARCH_API_URL`
Closes#196
## Test plan
- [x] 11 unit tests for SearxngSearchTool (JSON parsing, URL validation,
tool properties)
- [x] 2 config tests (defaults, deserialization)
- [x] 1 env override test
- [x] Full test suite passes (2772 lib tests)
- [x] `cargo clippy -- -D warnings` clean
- [ ] Manual test with self-hosted SearXNG instance
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Release Notes
* **New Features**
* Added SearXNG as a new web search provider option
* Implemented automatic provider detection based on available
configuration
* **Configuration**
* New environment variable `ZEPTOCLAW_TOOLS_WEB_SEARCH_PROVIDER` to
select search provider (brave, searxng, ddg)
* New environment variable `ZEPTOCLAW_TOOLS_WEB_SEARCH_API_URL` to
specify custom search API endpoint
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments