Add search tool server#31
Merged
Merged
Conversation
- Introduced a new FastAPI application for the Gemini grounding proxy. - Implemented authentication helpers for API key management, including creation, validation, and status updates. - Added Firestore integration for persistent API key storage and management. - Created Dockerfile and requirements files for deployment. - Included example environment configuration and Docker ignore settings. - Added unit tests for authentication helpers to ensure functionality and reliability.
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new FastAPI-based search tool server for Gemini grounding proxy functionality. The implementation provides a complete authentication system with API key management and integrates with Google's Firestore for persistent storage.
- Added FastAPI application with authentication middleware and Gemini API integration
- Implemented comprehensive API key authentication system with PBKDF2 hashing and caching
- Created Firestore repository layer for persistent API key storage with usage tracking
- Added extensive unit tests for authentication functionality
Reviewed Changes
Copilot reviewed 10 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_web_search_auth.py | Unit tests for authentication system with fake repository implementation |
| src/utils/web_search/requirements_app.in | Input file defining core dependencies for the web search application |
| src/utils/web_search/requirements-app.txt | Generated requirements file with pinned versions |
| src/utils/web_search/db.py | Firestore repository implementation for API key storage and management |
| src/utils/web_search/auth.py | Authentication helpers with API key validation and caching |
| src/utils/web_search/app.py | FastAPI application with grounding proxy endpoints and admin functionality |
| src/utils/web_search/Dockerfile | Container configuration for deploying the web search service |
| src/utils/web_search/.env.example | Example environment configuration file |
| src/utils/web_search/.dockerignore | Docker build context exclusions |
| pyproject.toml | Added web-search dependency group |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Collaborator
|
Thanks, Franklin. Could you add a src/utils/web_search/README.md file describing the steps for setting up the secrets, and spinning up the Docker server? Looks good in general. |
jacobthebanana
requested changes
Oct 29, 2025
jacobthebanana
approved these changes
Oct 29, 2025
… without usage decrement
- Added simplejson version 3.20.2 to the project dependencies. - Updated FastAPI to version 0.120.2 and Starlette to version 0.49.1 (following recommendation from pip-audit) in the dependency list.
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.
PR Type
Feature
Short Description
Tests Added
tests/test_web_search_auth