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
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 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)<!---->.
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.
Copy file name to clipboardExpand all lines: docs-devsite/ai.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,12 +95,12 @@ The Firebase AI Web SDK.
95
95
|[GenerateContentStreamResult](./ai.generatecontentstreamresult.md#generatecontentstreamresult_interface)| Result object returned from [GenerativeModel.generateContentStream()](./ai.generativemodel.md#generativemodelgeneratecontentstream) call. Iterate over <code>stream</code> to get chunks as they come in and/or use the <code>response</code> promise to get the aggregated response when the stream is done. |
96
96
|[GenerationConfig](./ai.generationconfig.md#generationconfig_interface)| Config options for content-related requests |
97
97
|[GenerativeContentBlob](./ai.generativecontentblob.md#generativecontentblob_interface)| Interface for sending an image. |
|[GoogleSearch](./ai.googlesearch.md#googlesearch_interface)|Configuration for the [GoogleSearchTool](./ai.googlesearchtool.md#googlesearchtool_interface)<!---->.|
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
102
|[GroundingMetadata](./ai.groundingmetadata.md#groundingmetadata_interface)| Metadata returned to client when grounding is enabled. |
|[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. |
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. |
@@ -121,15 +121,15 @@ The Firebase AI Web SDK.
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
123
|[SearchEntrypoint](./ai.searchentrypoint.md#searchentrypoint_interface)| Google search entry point. |
124
-
|[Segment](./ai.segment.md#segment_interface)|Segment of the content |
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. |
127
127
|[ToolConfig](./ai.toolconfig.md#toolconfig_interface)| Tool config. This config is shared for all tools provided in the request. |
128
128
|[UsageMetadata](./ai.usagemetadata.md#usagemetadata_interface)| Usage metadata about a [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!---->. |
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. |
| [renderedContentElement](./ai.searchentrypoint.md#searchentrypointrenderedcontentelement) | HTMLDivElement | attachShadow(<!-- -->{<!---->mode:'open'<!-- -->}<!---->).innerHTML=renderedContenthttps://developer.mozilla.org/en-US/docs/Web/API/Web\_components/Using\_shadow\_DOM - prevents CSS conflicts - "black box" structure that can't be modified by accident (very good in this context)<!-- -->this could be a helper method createEncapsulatedElement(htmlContent): HTMLDivElement |
ToensureproperrenderingandpreventCSSconflicts, itisrecommendedtoencapsulatethis `renderedContent` withinashadowDOMwhenembeddingitintoawebpage. See [MDN: UsingshadowDOM](https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_shadow_DOM)<!-- -->.
32
32
33
33
<b>Signature:</b>
34
34
35
35
```typescript
36
36
renderedContent: string;
37
37
```
38
38
39
-
## SearchEntrypoint.renderedContentElement
40
-
41
-
attachShadow(<!-- -->{<!-- -->mode: 'open'<!---->}<!---->).innerHTML=renderedContenthttps://developer.mozilla.org/en-US/docs/Web/API/Web\_components/Using\_shadow\_DOM - prevents CSS conflicts - "black box" structure that can't be modified by accident (very good in this context)
0 commit comments