feat: add Tavily as configurable search provider alongside Google PSE#3
Open
tavily-integrations wants to merge 2 commits into
Open
Conversation
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.
Summary
scripts/search.py--providerflag acceptsgoogle(default),tavily, orauto(Google PSE with Tavily fallback on 403/429)TAVILY_API_KEYsetFiles changed
scripts/search.py— Addedget_tavily_client(),tavily_search(),format_tavily_results()functions; added--providerCLI argument; updatedsearch()to route by provider and fall back to Tavily on quota errorsSKILL.md— Updated description, search tool priority table, usage examples, options table, and error handling table to document Tavily providerrequirements.txt— New file listingrequestsandtavily-pythondependenciesDependency changes
tavily-pythontorequirements.txtEnvironment variable changes
TAVILY_API_KEY— enables--provider tavilyand--provider autofallbackNotes for reviewers
--provider google(the default) is usedtavily-pythonis imported lazily so the script doesn't fail if the package is not installed and Tavily is not being used--provider automode tries Google PSE first, then falls back to Tavily only on HTTP 403/429 (quota/rate-limit errors)Automated Review