You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Represents a chunk of retrieved data that supports a claim in the model's response. This is part of the grounding information provided when grounding is enabled.
14
14
15
+
When using this feature, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Metadata returned to client when grounding is enabled.
14
14
15
+
If using Grounding with Google Search, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Whenusingthisfeature, youarerequiredtocomplywiththe [ServiceSpecificTerms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Whenusingthisfeature, youarerequiredtocomplywiththe [ServiceSpecificTerms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Whenusingthisfeature, youarerequiredtocomplywiththe [ServiceSpecificTerms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Whenusingthisfeature, youarerequiredtocomplywiththe [ServiceSpecificTerms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Provides information about how a specific segment of the model's response is supported by the retrieved grounding chunks.
14
14
15
+
When using this feature, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Copy file name to clipboardExpand all lines: docs-devsite/ai.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -98,9 +98,9 @@ The Firebase AI Web SDK.
98
98
|[GoogleSearch](./ai.googlesearch.md#googlesearch_interface)| Configuration for the [GoogleSearchTool](./ai.googlesearchtool.md#googlesearchtool_interface)<!---->. |
99
99
|[GoogleSearchTool](./ai.googlesearchtool.md#googlesearchtool_interface)| A tool that allows the generative model to connect to Google Search to access and incorporate up-to-date information from the web into its responses.<!---->When this tool is used, the model's responses may include "Grounded Results" which are subject to the Grounding with Google Search terms outlined in the [Service Specific Terms](https://cloud.google.com/terms/service-terms)<!---->. |
|[GroundingChunk](./ai.groundingchunk.md#groundingchunk_interface)| Represents a chunk of retrieved data that supports a claim in the model's response. This is part of the grounding information provided when grounding is enabled. |
102
-
|[GroundingMetadata](./ai.groundingmetadata.md#groundingmetadata_interface)| Metadata returned to client when grounding is enabled. |
103
-
|[GroundingSupport](./ai.groundingsupport.md#groundingsupport_interface)| Provides information about how a specific segment of the model's response is supported by the retrieved grounding chunks. |
101
+
|[GroundingChunk](./ai.groundingchunk.md#groundingchunk_interface)| Represents a chunk of retrieved data that supports a claim in the model's response. This is part of the grounding information provided when grounding is enabled.<!---->When using this feature, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".|
102
+
|[GroundingMetadata](./ai.groundingmetadata.md#groundingmetadata_interface)| Metadata returned to client when grounding is enabled.<!---->If using Grounding with Google Search, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".|
103
+
|[GroundingSupport](./ai.groundingsupport.md#groundingsupport_interface)| Provides information about how a specific segment of the model's response is supported by the retrieved grounding chunks.<!---->When using this feature, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".|
104
104
|[ImagenGCSImage](./ai.imagengcsimage.md#imagengcsimage_interface)| An image generated by Imagen, stored in a Cloud Storage for Firebase bucket.<!---->This feature is not available yet. |
105
105
|[ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface)| <b><i>(Public Preview)</i></b> Configuration options for generating images with Imagen.<!---->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images-imagen) for more details. |
106
106
|[ImagenGenerationResponse](./ai.imagengenerationresponse.md#imagengenerationresponse_interface)| <b><i>(Public Preview)</i></b> The response from a request to generate images with Imagen. |
@@ -120,7 +120,7 @@ The Firebase AI Web SDK.
120
120
|[SchemaParams](./ai.schemaparams.md#schemaparams_interface)| Params passed to [Schema](./ai.schema.md#schema_class) static methods to create specific [Schema](./ai.schema.md#schema_class) classes. |
121
121
|[SchemaRequest](./ai.schemarequest.md#schemarequest_interface)| Final format for [Schema](./ai.schema.md#schema_class) params passed to backend requests. |
122
122
|[SchemaShared](./ai.schemashared.md#schemashared_interface)| Basic [Schema](./ai.schema.md#schema_class) properties shared across several Schema-related types. |
123
-
|[SearchEntrypoint](./ai.searchentrypoint.md#searchentrypoint_interface)| Google search entry point. |
123
+
|[SearchEntrypoint](./ai.searchentrypoint.md#searchentrypoint_interface)| Google search entry point.<!---->When using this feature, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".|
124
124
|[Segment](./ai.segment.md#segment_interface)| Represents a specific segment within a [Content](./ai.content.md#content_interface) object, often used to pinpoint the exact location of text or data that grounding information refers to. |
125
125
|[StartChatParams](./ai.startchatparams.md#startchatparams_interface)| Params for [GenerativeModel.startChat()](./ai.generativemodel.md#generativemodelstartchat)<!---->. |
126
126
|[TextPart](./ai.textpart.md#textpart_interface)| Content part interface if the part represents a text string. |
@@ -129,7 +129,7 @@ The Firebase AI Web SDK.
129
129
|[VertexAIOptions](./ai.vertexaioptions.md#vertexaioptions_interface)| Options when initializing the Firebase AI SDK. |
130
130
|[VideoMetadata](./ai.videometadata.md#videometadata_interface)| Describes the input video content. |
|[WebGroundingChunk](./ai.webgroundingchunk.md#webgroundingchunk_interface)| A grounding chunk from the web. |
132
+
|[WebGroundingChunk](./ai.webgroundingchunk.md#webgroundingchunk_interface)| A grounding chunk from the web.<!---->When using this feature, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".|
When using this feature, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
When using this feature, you are required to comply with the [Service Specific Terms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Copy file name to clipboardExpand all lines: packages/ai/src/types/responses.ts
+23-5Lines changed: 23 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -173,43 +173,55 @@ export interface Citation {
173
173
/**
174
174
* Metadata returned to client when grounding is enabled.
175
175
*
176
+
* If using Grounding with Google Search, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
177
+
*
176
178
* @public
177
179
*/
178
180
exportinterfaceGroundingMetadata{
179
181
/**
180
-
* Google search entry for the following web searches.
181
-
* An HTML/CSS snippet that can be embedded in a web page to display a Google Search Entry point
182
-
* for follow-up web searches related to the model's response.
182
+
* Google search entry point for web searches.
183
+
* This contains An HTML/CSS snippet that *must* be embedded in an app to display a Google Search Entry point
184
+
* for follow-up web searches related to the model's "Grounded Response".
185
+
*
186
+
* When using this feature, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
183
187
*/
184
188
searchEntryPoint?: SearchEntrypoint;
185
189
/**
186
190
* A list of {@link GroundingChunk} objects. Each chunk represents a piece of retrieved content
187
191
* (e.g. from a web page). that the model used to ground its response.
192
+
*
193
+
* When using this feature, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
188
194
*/
189
195
groundingChunks?: GroundingChunk[];
190
196
/**
191
197
* A list of {@link GroundingSupport} objects. Each object details how specific
192
198
* segments of the model's response are supported by the `groundingChunks`.
199
+
*
200
+
* When using this feature, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
193
201
*/
194
202
groundingSupports?: GroundingSupport[];
195
203
/**
196
204
* A list of web search queries that the model performed to gather the grounding information.
197
205
* These can be used to allow users to explore the search results themselves.
206
+
*
207
+
* When using this feature, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
198
208
*/
199
209
webSearchQueries?: string[];
200
210
/**
201
-
* @deprecated Use {@linkGroundingMetadata.groundingSupports} instead.
211
+
* @deprecated Use {@linkGroundingSupport} instead.
202
212
*/
203
213
retrievalQueries?: string[];
204
214
/**
205
-
* @deprecated
215
+
* @deprecated Use {@link GroundingChunk} instead.
206
216
*/
207
217
groundingAttributions: GroundingAttribution[];
208
218
}
209
219
210
220
/**
211
221
* Google search entry point.
212
222
*
223
+
* When using this feature, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
* Represents a chunk of retrieved data that supports a claim in the model's response.
236
248
* This is part of the grounding information provided when grounding is enabled.
237
249
*
250
+
* When using this feature, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
* When using this feature, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
* Provides information about how a specific segment of the model's response
276
292
* is supported by the retrieved grounding chunks.
277
293
*
294
+
* When using this feature, you are required to comply with the {@link https://cloud.google.com/terms/service-terms | Service Specific Terms} for "Grounding with Google Search".
0 commit comments