Skip to content

Commit 941a551

Browse files
committed
comment updates
1 parent ef785be commit 941a551

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

packages/ai/src/types/requests.ts

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,26 @@ export interface GoogleSearchTool {
317317
googleSearch: GoogleSearch;
318318
}
319319

320+
/**
321+
* A tool that allows a Gemini model to connect to Google Maps to access and incorporate
322+
* location-based information into its responses.
323+
*
324+
* Important: If using Grounding with Google Maps, you are required to comply with the
325+
* "Grounding with Google Maps" usage requirements for your chosen API provider: {@link https://ai.google.dev/gemini-api/terms#grounding-with-google-maps | Gemini Developer API}
326+
* or Vertex AI Gemini API (see {@link https://cloud.google.com/terms/service-terms | Service Terms}
327+
* section within the Service Specific Terms).
328+
*
329+
* @public
330+
*/
320331
export interface GoogleMapsTool {
332+
/**
333+
* Specifies the Google Maps configuration.
334+
*
335+
* When using this feature, you are required to comply with the "Grounding with Google Maps"
336+
* usage requirements for your chosen API provider: {@link https://ai.google.dev/gemini-api/terms#grounding-with-google-maps | Gemini Developer API}
337+
* or Vertex AI Gemini API (see {@link https://cloud.google.com/terms/service-terms | Service Terms}
338+
* section within the Service Specific Terms).
339+
*/
321340
googleMaps: GoogleMaps;
322341
}
323342

@@ -346,8 +365,6 @@ export interface GoogleSearch {}
346365
/**
347366
* Specifies the Google Maps configuration.
348367
*
349-
* @remarks Currently, this is an empty object, but it's reserved for future configuration options.
350-
*
351368
* @public
352369
*/
353370
export interface GoogleMaps {
@@ -415,8 +432,8 @@ interface LatLng {
415432
}
416433

417434
/**
418-
* Represents the JSON structure for google.cloud.aiplatform.master.RetrievalConfig.
419-
* Configuration for retrieval.
435+
*
436+
* RetrievalConfig
420437
* @public
421438
*/
422439
interface RetrievalConfig {

0 commit comments

Comments
 (0)