Skip to content

Conversation

@jfradj
Copy link
Contributor

@jfradj jfradj commented Dec 24, 2025

This PR introduces comprehensive support for the Gemini File Search API and the Google Maps tool, expanding the client's capabilities for retrieval-augmented generation and location-based interactions.

Key Changes:

  • File Search API:

    • Implemented the FileSearchStores resource for managing file collections.
    • Added support for creating, listing, retrieving, and deleting file search stores.
    • Added support for uploading, listing, retrieving, and deleting documents within stores.
    • Integrated FileSearch configuration into Tool and ToolConfig.
  • Google Maps Tool:

    • Added support for the Google Maps tool (GoogleMaps, Map, PlaceAnswerSources) within the Tool definition, enabling the model to utilize location data.
  • Grounding & Retrieval:

    • Introduced GroundingMetadata, GroundingChunk, and RetrievedContext to handle grounding information in responses.
    • Added RetrievalConfig for configuring retrieval strategies.
  • Client & Contracts:

    • Updated Client and ClientContract to expose the new fileSearchStores() resource.
  • Documentation:

    • Updated README.md with detailed documentation and examples for using the new File Search APIs.

jfradj and others added 23 commits November 30, 2025 21:42
This commit introduces comprehensive support for Google Maps and File Search tools, enhancing the client's grounding capabilities.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jfradj
Copy link
Contributor Author

jfradj commented Dec 24, 2025

@aydinfatih I've just created a whole new PR with everything in it.
My first attempt was to try to split it into smaller PR, but they're too related.
Also, I've updated the README accordingly, lint all the code and run all the test til the all pass.

@aydinfatih
Copy link
Member

Hi @jfradj
A few GitHub actions have returned errors. Can you fix the errors?

@jfradj
Copy link
Contributor Author

jfradj commented Dec 29, 2025

Hey @aydinfatih, the few errors should be fixed by my last commit. Thanks

@aydinfatih aydinfatih merged commit d61ebe8 into google-gemini-php:main Dec 29, 2025
10 checks passed
@jfradj jfradj deleted the feature/new-gemini-tools branch December 29, 2025 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants