-
Notifications
You must be signed in to change notification settings - Fork 11
Add additional Serper endpoints #215
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR significantly expands the Serper action package by adding 7 new specialized search endpoints (news, shopping, scholar, patents, maps, places, reviews) to complement the existing Google search functionality. The code has been refactored with helper functions for better maintainability and includes enhanced Pydantic models to capture richer response data.
- Added 7 new search endpoints with specialized functionality for different content types
- Refactored code structure with validation helpers and request utilities
- Enhanced data models to capture more detailed response fields from the API
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| package.yaml | Version bump from 1.1.2 to 1.2.0 |
| actions.py | Major refactor adding helper functions, validation, and 7 new search endpoints |
| devdata/*.json | Test input files for each new search endpoint |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| credits: int = Field(description="The number of credits used", default=0) | ||
|
|
||
|
|
||
|
|
Copilot
AI
Sep 7, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the extra blank line before the @action decorator. Only one blank line should separate top-level function definitions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove empty line before action decorator
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
Related, non-blocking |
tonnitommi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add changelog entry and update readme with new tools available
Summary
Added 8 new search endpoints to complement the existing
search_googleaction and refactored the structure to keep things simple.New Search Endpoints
Testing
Changes
Notes
Intentionally excluded image, video, and lens search endpoints.
Didn't spend a ton of time over-engineering this since we'll eventually switch to MCP like serper-mcp-server.