feat: Google Places (New) integration tools - #479
Merged
Conversation
Adds 5 App Provided tools (category: Google Places) ported from Travel-with-Genie-AI/google_services with full parameter coverage: - gplaces_text_search: text search with location bias/restriction, type/price/rating filters, pagination - gplaces_place_details: full field-mask details incl. photos, reviews, review summary - gplaces_place_photo: photo media URL resolution (photoUri or redirect) - gplaces_autocomplete: suggestions with primary-type filter, location bias, Redis cache, country post-filter - gplaces_nearby_search: searchNearby with included/excluded types Credentials reuse the google_maps Integration Service (env fallbacks PLACE_API_KEY / GOOGLE_PLACES_API_KEY added). Operational knobs are now configurable via the same Integration Service: places_cache_ttl, places_cache_enabled, places_request_timeout, autocomplete_request_timeout, places_default_radius, places_photo_max_px, places_autocomplete_primary_types.
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.
Summary
Ports the Google Places API (New) integrations from Travel-with-Genie-AI/google_services@develop into huf as first-class App Provided tools — with full parameter coverage (the source hardcoded many API params; the tools expose them).
Tools (5, category: Google Places)
gplaces_text_searchplaces:searchTextgplaces_place_detailsplaces/{id}gplaces_place_photo{photo}/mediagplaces_autocompleteplaces:autocompletegplaces_nearby_searchplaces:searchNearbyDesign
google_maps.pyApp Provided pattern: no DocType, frontend, orsdk_tools.pychanges — tools sync viasync_discovered_tools()and appear in the agent tool picker automatically.PLACE_API_KEY/GOOGLE_PLACES_API_KEYadded.google_mapsIntegration Service (arbitrary credential key/value rows):places_cache_ttl(default 86400 s),places_cache_enabled(default true)places_request_timeout(default 15 s),autocomplete_request_timeout(default 5 s)places_default_radius(default 50000 m)places_photo_max_px(default 800)places_autocomplete_primary_types(default locality,sublocality,administrative_area_level_1,administrative_area_level_2,neighborhood)Testing
huf/ai/tests/test_google_places_tools.py— 22 unit tests (param building, field masks, validation, cache key/TTL/overrides, cache disable, country filter, photo redirect handling, registry wiring), all passing with mocked requests.compileallclean; no new ruff findings on the new files.Related: #439 (Google/Perplexity search tools). Companion SERP PR follows separately.