-
Notifications
You must be signed in to change notification settings - Fork 290
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
fix(serper-dev): restore search localization parameters #197
base: main
Are you sure you want to change the base?
Conversation
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment for PR #197: Restore Search Localization ParametersOverviewThis pull request aims to restore previously removed localization parameters ( Positive Aspects
Code Quality Findings
Documentation RecommendationsREADME.mdThe documentation has been updated to reflect the new parameters. However, enhancements can be made:
General Recommendations
Final ThoughtsThe changes made in this pull request are significant for the functionality of the This review provides insights based on the analysis of the code changes and emphasizes best practices for future enhancements. Please feel free to ask for further clarification or additional details if needed. |
Worth mentioning that those parameters, which were removed, still present in the official doc: https://docs.crewai.com/tools/serperdevtool#parameters |
dcadb7f
to
104ab58
Compare
I amend my last commit to add unit tests and fix a small bug. |
- Re-add country (gl), location, and locale (hl) parameters to SerperDevTool class - Update payload construction in _make_api_request to include localization params - Add schema validation for localization parameters - Update documentation and examples to demonstrate parameter usage These parameters were accidentally removed in the previous enhancement PR and are crucial for: - Getting region-specific search results (via country/gl) - Targeting searches to specific cities (via location) - Getting results in specific languages (via locale/hl) BREAKING CHANGE: None - This restores previously available functionality
104ab58
to
f440884
Compare
Fix: Restore Search Localization Parameters in SerperDevTool
Co-Authored-By: @Rolando-B
Issue
The previous enhancement PR #147 inadvertently removed crucial search localization parameters (
country
,location
,locale
) from theSerperDevTool
class. These parameters are essential for users who need to perform geographically targeted searches.Changes
SerperDevTool
:country
(maps togl
in Serper API)location
(for city-specific searches)locale
(maps tohl
in Serper API)_make_api_request
to include these parametersWhy
These parameters are crucial for:
country
)location
)locale
)