Skip to content

Conversation

Giom-V
Copy link
Collaborator

@Giom-V Giom-V commented Aug 11, 2025

No description provided.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:examples Issues/PR referencing examples folder component:quickstarts Issues/PR referencing quickstarts folder labels Aug 11, 2025
Copy link

@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.

Summary of Changes

Hello @Giom-V, 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 and integrates the new "URL context" tool into the Gemini API Cookbook, specifically within the Grounding.ipynb quickstart guide. This enhancement allows Gemini models to directly process and leverage content from various online sources like web pages, PDFs, and images by simply providing their URLs, thereby enriching the model's understanding and response generation.

Highlights

  • New URL Context Tool Integration: The Grounding.ipynb notebook now features comprehensive demonstrations of how to use the url_context tool. This includes examples for grounding Gemini models with content from website URLs, PDF URLs, and image URLs, significantly expanding the model's ability to incorporate external, live information.
  • Enhanced Grounding Notebook: The quickstarts/Grounding.ipynb notebook has undergone substantial updates. These include the addition of internal anchor links for easier navigation between different grounding methods (Google Search, YouTube, and the new URL context), streamlined SDK setup instructions, updated model references to the latest Gemini 2.5 variants, and refreshed example outputs to reflect current model behavior and capabilities.
  • Documentation Update: The README.md file has been modified to highlight the newly introduced "url context" tool within the "Recently Added Guides" section, ensuring visibility and discoverability for users exploring grounding techniques. A minor formatting adjustment was also made.
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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 or fill out our survey to provide feedback.

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

@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 extensive examples for the new url_context tool in the Grounding.ipynb notebook, demonstrating how to ground Gemini's responses using websites, PDFs, and images. The changes are well-structured and provide valuable examples of combining url_context with other features like JSON mode and Google Search. The README.md file is also updated to reflect this new capability. My review includes a couple of suggestions to ensure the notebook aligns with the repository's style guide and Python best practices.

@Giom-V Giom-V merged commit f6304b8 into google-gemini:main Aug 18, 2025
3 of 5 checks passed
@Giom-V Giom-V deleted the url_context branch August 18, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:examples Issues/PR referencing examples folder component:quickstarts Issues/PR referencing quickstarts folder status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants