feat: implement Gemini File Search APIs (Stores & Documents)#157
Closed
jfradj wants to merge 15 commits intogoogle-gemini-php:mainfrom
Closed
feat: implement Gemini File Search APIs (Stores & Documents)#157jfradj wants to merge 15 commits intogoogle-gemini-php:mainfrom
jfradj wants to merge 15 commits intogoogle-gemini-php:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request implements the Gemini File Search API, introducing functionality to manage file search stores and documents. The implementation follows the existing codebase patterns for API resource management, adding new contracts, request/response classes, and resource implementations.
Key Changes
- Added
FileSearchStoresresource with methods for CRUD operations on stores and documents - Implemented file upload functionality specifically for file search stores using multipart/related requests
- Created comprehensive test coverage for all FileSearchStores operations
Reviewed changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 17 comments.
Show a summary per file
| File | Description |
|---|---|
src/Contracts/Resources/FileSearchStoresContract.php |
Defines interface for file search stores operations - missing strict_types declaration |
src/Resources/FileSearchStores.php |
Main resource implementation providing CRUD operations for stores and documents |
src/Requests/FileSearchStores/*.php |
Request classes for create, get, list, delete, and upload operations |
src/Requests/FileSearchStores/Documents/*.php |
Request classes for document-specific operations |
src/Responses/FileSearchStores/*.php |
Response classes for parsing API responses |
src/Responses/FileSearchStores/Documents/*.php |
Response classes for document-related responses |
src/Testing/Responses/Fixtures/FileSearchStores/*.php |
Test fixtures for response objects |
tests/Resources/FileSearchStores.php |
Comprehensive test suite covering all operations |
src/Client.php |
Integration of fileSearchStores() method into main client |
src/Contracts/ClientContract.php |
Contract update to include fileSearchStores() method |
README.md |
Documentation with multiple critical errors in API usage examples |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These commits introduce the new Gemini File Search API