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
This is generated by the JS SDK team, and any local changes will be
8
+
overwritten. Changes should be made in the source code at
9
+
https://github.com/firebase/firebase-js-sdk
10
+
{% endcomment %}
11
+
12
+
# GoogleSearchTool interface
13
+
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.
14
+
15
+
When using Grounding with Google Search, you may receive a response with data generated from Google's search engine. This response is a "Grounded Result" subject to the Grounding with Google Search terms in the [Service Specific Terms](https://cloud.google.com/terms/service-terms)<!---->.
This is generated by the JS SDK team, and any local changes will be
8
+
overwritten. Changes should be made in the source code at
9
+
https://github.com/firebase/firebase-js-sdk
10
+
{% endcomment %}
11
+
12
+
# GroundingChunk interface
13
+
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
+
15
+
Important: 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".
Metadata returned to client when grounding is enabled.
13
+
Metadata returned when grounding is enabled.
14
+
15
+
Currently, the only way to use grounding is to include a [GoogleSearchTool](./ai.googlesearchtool.md#googlesearchtool_interface) in your [GenerationConfig](./ai.generationconfig.md#generationconfig_interface)<!---->.
16
+
17
+
Important: 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".
Important: IfusingGroundingwithGoogleSearch, youarerequiredtocomplywiththe [ServiceSpecificTerms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Important: IfusingGroundingwithGoogleSearch, youarerequiredtocomplywiththe [ServiceSpecificTerms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
66
+
67
+
<b>Signature:</b>
68
+
69
+
```typescript
70
+
groundingSupports?: GroundingSupport[];
71
+
```
72
+
41
73
## GroundingMetadata.retrievalQueries
42
74
75
+
> Warning: ThisAPIisnowobsolete.
76
+
>
77
+
> Use [GroundingSupport](./ai.groundingsupport.md#groundingsupport_interface) instead.
Important: IfusingGroundingwithGoogleSearch, youarerequiredtocomplywiththe [ServiceSpecificTerms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
Important: IfusingGroundingwithGoogleSearch, youarerequiredtocomplywiththe [ServiceSpecificTerms](https://cloud.google.com/terms/service-terms) for "Grounding with Google Search".
This is generated by the JS SDK team, and any local changes will be
8
+
overwritten. Changes should be made in the source code at
9
+
https://github.com/firebase/firebase-js-sdk
10
+
{% endcomment %}
11
+
12
+
# GroundingSupport interface
13
+
Provides information about how a specific segment of the model's response is supported by the retrieved grounding chunks.
14
+
15
+
Important: 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".
0 commit comments