Repository navigation
feat: add SerpApi search tools and provider descriptions - #10601
Merged
Merged
Conversation
Contributor
5 tasks done
8 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Selecting SerpApi now makes Google web, Images Light, Finance, and Scholar search available to the agent, with source citations and shared API key rotation. The configuration dropdown also shows readable provider names and capability descriptions while preserving stored option values.
Modifications
Add four SerpApi tools, including localized queries, Scholar publication-year filters, Finance history windows, and image/source URLs. Register them in agent requests and both dashboard citation paths.
Share key rotation and failover for authentication/quota errors, redact credentials from request errors, and support legacy string key configuration.
Place SerpApi first and DeepSeek Search API second in the provider dropdown. Add localized
subtitlesmetadata for core and plugin single/multi-select configuration.Open configuration hint links in a new tab with
noopener noreferrer, and include SerpApi and DeepSeek key-management links.Update English/Chinese search and plugin configuration documentation, four WebUI locales, and the changelog. Navigation and stored configuration values are unchanged; existing navigation screenshots do not need replacement.
This is not a breaking change.
Verification Steps and Test Results
python -m pytest tests/unit/test_serpapi_search.py tests/unit/test_astr_main_agent.py tests/unit/test_web_search_refs.py tests/unit/test_config.py -q— 356 passed.python -m pytest tests/unit/test_web_search_tools.py -q— 110 passed.node --test dashboard/tests/configSelectItems.test.mjs— 5 passed, covering preserved values, optional subtitles, translations, and plugin fallback.ruff format .,ruff check ., andgit diff --check— passed.cd dashboard && pnpm build— passed, including TypeScript checks.cd dashboard && pnpm i18n:check— passed for all four locales.cd docs && pnpm run docs:build— passed.Checklist
Summary by Sourcery
Enable SerpApi as a search provider with four Google-backed search capabilities and clearer localized provider configuration.
New Features:
Bug Fixes:
Enhancements:
Documentation:
Tests:
Chores: