feat: add Tavily as a configurable search provider#1
Open
tavily-integrations wants to merge 1 commit intobysiber:mainfrom
Open
feat: add Tavily as a configurable search provider#1tavily-integrations wants to merge 1 commit intobysiber:mainfrom
tavily-integrations wants to merge 1 commit intobysiber:mainfrom
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
--search-provider tavilyorDEEPWORM_SEARCH_PROVIDER=tavilysearch_depth="advanced"andinclude_raw_content=Truefor research-quality resultsFiles changed
pyproject.toml— Addedtavily-python>=0.3.0to core dependenciesdeepworm/search.py— Added_search_tavily()function and wired it intosearch_web()dispatchdeepworm/config.py— Added"tavily"toVALID_SEARCH_PROVIDERSsetdeepworm/__main__.py— Added"tavily"to--search-providerCLI choicesDependency changes
tavily-python>=0.3.0topyproject.tomldependenciesEnvironment variable changes
TAVILY_API_KEY— Required whensearch_provider=tavily(validated at search time, same pattern asBRAVE_API_KEY)Notes for reviewers
_search_tavily()function returns results in the sameSearchResultschema as other providers, soresearcher.pyrequires no changes_search_tavily(), consistent with how_search_brave()validatesBRAVE_API_KEY🤖 Generated with Claude Code
Automated Review
tavily-pythonis added as a mandatory core dependency rather than an optional extra (unlikeanthropicandgooglewhich are optional), and thebodyfield is not serialized in the search cache — though the latter is a pre-existing limitation affecting all providers.