Skip to content

Conversation

@MengqinShen
Copy link
Contributor

@MengqinShen MengqinShen commented Jan 14, 2026

This PR is to add extra flows in google-genai sample to match that in JS SDK.

  1. The main change is to expanded GenAI sample flows: The google-genai-hello sample has been significantly expanded with numerous new flows demonstrating advanced capabilities of Google's Generative AI models, including multimodal interactions, image editing, video understanding, and various configuration options.
  2. Vertex AI Sample is also added to showcase Google GenAI functionalities specifically tailored for the Vertex AI platform, including video understanding with metadata and Google Maps grounding.
  3. Improvements have been made to how multimodal content within tool responses is processed and converted, allowing for the extraction of media parts (e.g., base64 encoded images) from tool outputs.
  4. The Google GenAI plugin now supports dynamic API versioning, allowing specific API versions (e.g., 'v1alpha') to be set via request configuration. Additionally, GeminiConfigSchema has been extended with new fields like thinking_config, file_search, and url_context.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @MengqinShen, I'm Gemini Code Assist1! 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 introduces a comprehensive set of enhancements to the Google Generative AI plugin, expanding its capabilities to support a wider range of advanced model features. It includes critical updates to tool response processing, flexible API version management, and new configuration options for Gemini models. The accompanying sample applications have been thoroughly updated and extended to provide clear demonstrations of these new functionalities, including a dedicated example for Vertex AI, ensuring developers can easily leverage the latest generative AI advancements.

Highlights

  • Enhanced Google Generative AI Plugin: The Google Generative AI plugin now supports advanced features such as multimodal tool responses, configurable API versions, thinking levels, image editing, video understanding, and various grounding capabilities (search, URL, file search, maps).
  • Improved Tool Handling and Metadata Management: Refinements have been made to how tool request metadata is handled, and tool responses can now include multimodal content, allowing for richer interactions with AI models.
  • New Configuration Options for Gemini Models: The GeminiConfigSchema has been extended to include new fields like thinking_config, file_search, url_context, and api_version, providing more granular control over model behavior.
  • Dynamic API Versioning for Gemini Client: The system can now dynamically create a genai.Client with a specified API version (e.g., 'v1alpha') based on the request configuration, enabling access to experimental or preview features.
  • Expanded Sample Flows for Google AI and Vertex AI: The google-genai-hello sample has been significantly updated with numerous new flows demonstrating advanced features across both Google AI and Vertex AI platforms, including image editing, video understanding, various grounding techniques, and multipart tool calling.
  • Dedicated Vertex AI Sample: A new sample file (main_vertexai.py) has been added to specifically showcase the integration and usage of Google Generative AI features within the Vertex AI environment.

🧠 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 👍 and 👎 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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  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.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several enhancements and fixes, primarily focused on expanding the capabilities of the Google GenAI plugin. Key changes include support for per-request API versions, handling of multimodal tool responses, and adding new configuration options like thinking_config. The sample applications have been updated extensively to demonstrate these new features.

My review has identified a critical issue with unreachable code in one of the new sample flows, a medium-severity maintainability concern regarding the use of private library members, and a suggestion to improve code readability. Please see the detailed comments below.

@MengqinShen MengqinShen marked this pull request as ready for review January 14, 2026 07:31
@MengqinShen MengqinShen requested a review from yesudeep January 14, 2026 07:32
@MengqinShen MengqinShen merged commit 7fea3df into main Jan 14, 2026
10 checks passed
@MengqinShen MengqinShen deleted the elisa/fix(py)/extra-flow-genai-hello branch January 14, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants