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
// Warning: (ae-incompatible-release-tags) The symbol "urlContextMetadata" is marked as @public, but its signature references "URLContextMetadata" which is marked as @beta
// Warning: (ae-internal-missing-underscore) The name "GoogleAIGenerateContentResponse" should be prefixed with an underscore because the declaration is marked as @internal
// Warning: (ae-incompatible-release-tags) The symbol "Tool" is marked as @public, but its signature references "URLContextTool" which is marked as @beta
Copy file name to clipboardExpand all lines: docs-devsite/ai.md
+43-1Lines changed: 43 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,10 @@ The Firebase AI Web SDK.
134
134
|[TextPart](./ai.textpart.md#textpart_interface)| Content part interface if the part represents a text string. |
135
135
|[ThinkingConfig](./ai.thinkingconfig.md#thinkingconfig_interface)| Configuration for "thinking" behavior of compatible Gemini models.<!---->Certain models utilize a thinking process before generating a response. This allows them to reason through complex problems and plan a more coherent and accurate answer. |
136
136
|[ToolConfig](./ai.toolconfig.md#toolconfig_interface)| Tool config. This config is shared for all tools provided in the request. |
137
+
|[URLContext](./ai.urlcontext.md#urlcontext_interface)| <b><i>(Public Preview)</i></b> Specifies the URL Context configuration. |
138
+
|[URLContextMetadata](./ai.urlcontextmetadata.md#urlcontextmetadata_interface)| <b><i>(Public Preview)</i></b> Metadata related to [URLContextTool](./ai.urlcontexttool.md#urlcontexttool_interface)<!---->. |
139
+
|[URLContextTool](./ai.urlcontexttool.md#urlcontexttool_interface)| <b><i>(Public Preview)</i></b> A tool that allows you to provide additional context to the models in the form of public web URLs. By including URLs in your request, the Gemini model will access the content from those pages to inform and enhance its response. |
140
+
|[URLMetadata](./ai.urlmetadata.md#urlmetadata_interface)| <b><i>(Public Preview)</i></b> Metadata for a single URL retrieved by the [URLContextTool](./ai.urlcontexttool.md#urlcontexttool_interface) tool. |
137
141
|[UsageMetadata](./ai.usagemetadata.md#usagemetadata_interface)| Usage metadata about a [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!---->. |
138
142
|[VideoMetadata](./ai.videometadata.md#videometadata_interface)| Describes the input video content. |
139
143
|[VoiceConfig](./ai.voiceconfig.md#voiceconfig_interface)| <b><i>(Public Preview)</i></b> Configuration for the voice to used in speech synthesis. |
@@ -165,6 +169,7 @@ The Firebase AI Web SDK.
165
169
|[POSSIBLE\_ROLES](./ai.md#possible_roles)| Possible roles. |
166
170
|[ResponseModality](./ai.md#responsemodality)| <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
167
171
|[SchemaType](./ai.md#schematype)| Contains the list of OpenAPI data types as defined by the [OpenAPI specification](https://swagger.io/docs/specification/data-models/data-types/)|
172
+
|[URLRetrievalStatus](./ai.md#urlretrievalstatus)| <b><i>(Public Preview)</i></b> The status of a URL retrieval. |
168
173
169
174
## Type Aliases
170
175
@@ -197,6 +202,7 @@ The Firebase AI Web SDK.
197
202
|[SchemaType](./ai.md#schematype)| Contains the list of OpenAPI data types as defined by the [OpenAPI specification](https://swagger.io/docs/specification/data-models/data-types/)|
198
203
|[Tool](./ai.md#tool)| Defines a tool that model can call to access external knowledge. |
199
204
|[TypedSchema](./ai.md#typedschema)| A type that includes all specific Schema types. |
205
+
|[URLRetrievalStatus](./ai.md#urlretrievalstatus)| <b><i>(Public Preview)</i></b> The status of a URL retrieval. |
200
206
201
207
## function(app, ...)
202
208
@@ -755,6 +761,27 @@ SchemaType: {
755
761
}
756
762
```
757
763
764
+
## URLRetrievalStatus
765
+
766
+
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
767
+
>
768
+
769
+
The status of a URL retrieval.
770
+
771
+
<b>URL\_RETRIEVAL\_STATUS\_UNSPECIFIED:</b> Unspecified retrieval status. <br/> <b>URL\_RETRIEVAL\_STATUS\_SUCCESS:</b> The URL retrieval was successful. <br/> <b>URL\_RETRIEVAL\_STATUS\_ERROR:</b> The URL retrieval failed. <br/> <b>URL\_RETRIEVAL\_STATUS\_PAYWALL:</b> The URL retrieval failed because the content is behind a paywall. <br/> <b>URL\_RETRIEVAL\_STATUS\_UNSAFE:</b> The URL retrieval failed because the content is unsafe. <br/>
772
+
773
+
<b>Signature:</b>
774
+
775
+
```typescript
776
+
URLRetrievalStatus: {
777
+
URL_RETRIEVAL_STATUS_UNSPECIFIED: string;
778
+
URL_RETRIEVAL_STATUS_SUCCESS: string;
779
+
URL_RETRIEVAL_STATUS_ERROR: string;
780
+
URL_RETRIEVAL_STATUS_PAYWALL: string;
781
+
URL_RETRIEVAL_STATUS_UNSAFE: string;
782
+
}
783
+
```
784
+
758
785
## AIErrorCode
759
786
760
787
Standardized error codes that [AIError](./ai.aierror.md#aierror_class) can have.
@@ -1046,7 +1073,7 @@ Defines a tool that model can call to access external knowledge.
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
1092
+
>
1093
+
1094
+
The status of a URL retrieval.
1095
+
1096
+
<b>URL\_RETRIEVAL\_STATUS\_UNSPECIFIED:</b> Unspecified retrieval status. <br/> <b>URL\_RETRIEVAL\_STATUS\_SUCCESS:</b> The URL retrieval was successful. <br/> <b>URL\_RETRIEVAL\_STATUS\_ERROR:</b> The URL retrieval failed. <br/> <b>URL\_RETRIEVAL\_STATUS\_PAYWALL:</b> The URL retrieval failed because the content is behind a paywall. <br/> <b>URL\_RETRIEVAL\_STATUS\_UNSAFE:</b> The URL retrieval failed because the content is unsafe. <br/>
> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
14
+
>
15
+
16
+
A tool that allows you to provide additional context to the models in the form of public web URLs. By including URLs in your request, the Gemini model will access the content from those pages to inform and enhance its response.
0 commit comments