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(#589): wire WebToolsConfig to web search/fetch tools (#663)
* docs(config): update WebToolsConfig provider names
- Update doc comments to match actual implementation
- Document env var fallback behavior
- Change provider names from brave/searxng/google to exa/kimi_search
Part of: #589
* feat(tools): add from_config() to WebSearchTool
- Add from_config() method that accepts Option<&WebToolsConfig>
- Support provider selection via config.search_provider
- Fall back to environment variables when config not provided
- Extract from_env_inner() helper for code reuse
- Maintain backward compatibility with existing new() and from_env()
Part of: #589
* feat(tools): add from_config() to WebFetchTool
- Add from_config() method that accepts Option<&WebToolsConfig>
- Support fetch mode selection via config.fetch_mode
- Defaults to raw when config not provided or mode not specified
- Maintain backward compatibility with existing new() and with_mode()
Part of: #589
* feat(tools): wire config through to web tools
- Update create_default_registry signature to accept Option<&WebToolsConfig>
- Use from_config() instead of new() for web tools in registry
- Update main.rs to pass config.tools.web to registry creation
- Both agent mode and gateway mode now respect web_tools config
Part of: #589
* test(tools): add unit tests for from_config methods
- Add provider_name() test helper to WebSearchTool
- Add tests for WebSearchTool::from_config():
- test_web_search_from_config_exa
- test_web_search_from_config_kimi
- test_web_search_from_config_fallback
- test_web_search_from_config_unknown_provider
- Add tests for WebFetchTool::from_config():
- test_web_fetch_from_config_raw
- test_web_fetch_from_config_readability
- test_web_fetch_from_config_fallback
- test_web_fetch_from_config_none_mode
Part of: #589
* test(tools): add integration tests for config wiring
- Add test_web_tools_config_wired_to_registry
- Add test_registry_without_web_tools_config
- Add test_all_expected_tools_registered
- Verify config values flow through to tool registry
Part of: #589
0 commit comments