Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: Add Google Search grounding to GoogleModel - open issue #840#2161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

vjvkrm
Copy link

Closes#840

Description

This pull request implements native Google Search grounding for theGoogleModel, enabling it to answer questions about current events and access real-time information. This provides a direct and intuitive way to leverage one of Gemini's core features within thepydantic-ai framework, resolving the feature request in issue#840.

Key Changes

  • ✨ Feature Implementation:

    • Introduced a newenable_google_search: bool parameter to theGoogleModel constructor.
    • WhenTrue, the model is configured to automatically use theGoogleSearch tool for grounding.
  • 🧪 Test Coverage:

    • Added a new test case test_google_search to tests/models/test_google.py.
    • Includes avcrpy cassette to ensure the test runs offline and validates the feature's behavior without needing a live API key during CI/CD runs.
  • 📚 Documentation:

    • Updated docs/models/google.md with a new "Grounding with Google Search" section.
    • The new documentation includes a clear explanation and a concise code example for users.

GuilleQP reacted with heart emoji
@hyperlint-aiHyperlint AI
Copy link
Contributor

PR Change Summary

Implemented Google Search grounding in the GoogleModel, enhancing its ability to provide real-time information.

  • Introduced a new parameterenable_google_search in the GoogleModel constructor.
  • Added a test case for the Google Search feature to ensure functionality without a live API key.
  • Updated documentation to include a new section on using Google Search grounding.

Modified Files

  • docs/models/google.md

How can I customize these reviews?

Check out theHyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add thehyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to addhyperlint-ignore to the PR to ignore the link check for this PR.

@DouweM
Copy link
Contributor

This is already covered in#2102 which will be merged soon!

vjvkrm reacted with thumbs up emoji

@DouweMDouweM closed thisJul 16, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

GoogleSearchTool for GeminiModel and VertexAIModel
2 participants
@vjvkrm@DouweM

[8]ページ先頭

©2009-2025 Movatter.jp