ms-agent icon indicating copy to clipboard operation
ms-agent copied to clipboard

feat: add Tavily search engine option to deep_research configuration

Open tavily-integrations opened this issue 8 months ago • 1 comments

Summary

Adds Tavily as a configurable search engine option in the deep_research project, alongside the existing EXA, SERPAPI, and ARXIV engines. This is an additive (parallel) change — no existing functionality is modified.

Changes

projects/deep_research/conf.yaml

  • Updated header comment to list TAVILY as a supported engine value
  • Added commented-out SEARCH_ENGINE block for tavily engine with tavily_api_key: $TAVILY_API_KEY, matching the style of existing exa/serpapi blocks

projects/deep_research/.env.example

  • Added TAVILY_API_KEY=xxx placeholder alongside existing EXA_API_KEY and SERPAPI_API_KEY entries

Environment variable changes

  • Added TAVILY_API_KEY reference in .env.example

Notes for reviewers

  • This is a config-only change; no source code or dependencies are modified.
  • Depends on the core-search-framework migration unit to add runtime support for the tavily engine type in get_web_search_tool().
  • Users can enable Tavily by uncommenting the tavily SEARCH_ENGINE block and commenting out the active arxiv block.

🤖 Generated with Claude Code

Automated Review

  • Passed after 3 attempt(s)
  • Final review: The Tavily migration for deep-research-v1-config is functionally correct and complete. All three previously identified critical/major issues have been properly addressed: TavilySearchRequestGenerator is implemented with all required methods, websearch_tool.py fully integrates Tavily into the engine registry and connect() lifecycle, and published_date is propagated through TavilySearchResult.to_list(). The Tavily SDK is used correctly (max_results mapping, TavilyClient instantiation, dict-based response handling). Dependencies, env vars, and config documentation are all present. Only minor inconsistencies remain — none of which block approval.

tavily-integrations avatar Mar 24 '26 20:03 tavily-integrations

Summary of Changes

Hello, I'm Gemini Code Assist[^1]! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates Tavily as a new search engine into the deep_research project. This additive change provides users with an additional powerful web search option, complementing the existing engines without altering their functionality. The integration involved updating core search components, adding Tavily-specific logic, and modifying configuration files to enable its use.

Highlights

  • New Search Engine Integration: Tavily has been added as a new search engine option, expanding the capabilities of the deep_research project.
  • Configuration Updates: The deep_research project's configuration files (conf.yaml and .env.example) were updated to support Tavily, including a new API key placeholder and a commented-out configuration block.
  • Core Search Framework Extension: The core search framework was extended to include Tavily, involving updates to search engine types, request generators, and the web search tool.
  • New Tavily Module: Dedicated Python files were introduced for Tavily, defining its search request/result schemas and the search engine implementation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with :thumbsup: and :thumbsdown: on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

[^1]: Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

gemini-code-assist avatar Mar 24 '26 20:03 gemini-code-assist