Skip to content

Commit 13b4b6e

Browse files
committed
Add public preview annotations
1 parent 6e7753a commit 13b4b6e

File tree

8 files changed

+56
-22
lines changed

8 files changed

+56
-22
lines changed

common/api-review/ai.api.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ export interface GenerateContentCandidate {
448448
index: number;
449449
// (undocumented)
450450
safetyRatings?: SafetyRating[];
451+
// Warning: (ae-incompatible-release-tags) The symbol "urlContextMetadata" is marked as @public, but its signature references "URLContextMetadata" which is marked as @beta
452+
//
451453
// (undocumented)
452454
urlContextMetadata?: URLContextMetadata;
453455
}
@@ -1304,6 +1306,8 @@ export interface ThinkingConfig {
13041306
thinkingBudget?: number;
13051307
}
13061308

1309+
// Warning: (ae-incompatible-release-tags) The symbol "Tool" is marked as @public, but its signature references "URLContextTool" which is marked as @beta
1310+
//
13071311
// @public
13081312
export type Tool = FunctionDeclarationsTool | GoogleSearchTool | CodeExecutionTool | URLContextTool;
13091313

@@ -1316,27 +1320,27 @@ export interface ToolConfig {
13161320
// @public
13171321
export type TypedSchema = IntegerSchema | NumberSchema | StringSchema | BooleanSchema | ObjectSchema | ArraySchema | AnyOfSchema;
13181322

1319-
// @public
1323+
// @beta
13201324
export interface URLContext {
13211325
}
13221326

1323-
// @public
1327+
// @beta
13241328
export interface URLContextMetadata {
13251329
urlMetadata: URLMetadata[];
13261330
}
13271331

1328-
// @public
1332+
// @beta
13291333
export interface URLContextTool {
13301334
urlContext: URLContext;
13311335
}
13321336

1333-
// @public
1337+
// @beta
13341338
export interface URLMetadata {
13351339
retrievedUrl?: string;
13361340
urlRetrievalStatus?: URLRetrievalStatus;
13371341
}
13381342

1339-
// @public
1343+
// @beta
13401344
export const URLRetrievalStatus: {
13411345
URL_RETRIEVAL_STATUS_UNSPECIFIED: string;
13421346
URL_RETRIEVAL_STATUS_SUCCESS: string;
@@ -1345,7 +1349,7 @@ export const URLRetrievalStatus: {
13451349
URL_RETRIEVAL_STATUS_UNSAFE: string;
13461350
};
13471351

1348-
// @public
1352+
// @beta
13491353
export type URLRetrievalStatus = (typeof URLRetrievalStatus)[keyof typeof URLRetrievalStatus];
13501354

13511355
// @public

docs-devsite/ai.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,10 @@ The Firebase AI Web SDK.
134134
| [TextPart](./ai.textpart.md#textpart_interface) | Content part interface if the part represents a text string. |
135135
| [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. |
136136
| [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) | Specifies the URL Context configuration. |
138-
| [URLContextMetadata](./ai.urlcontextmetadata.md#urlcontextmetadata_interface) | Metadata related to [URLContextTool](./ai.urlcontexttool.md#urlcontexttool_interface)<!-- -->. |
139-
| [URLContextTool](./ai.urlcontexttool.md#urlcontexttool_interface) | 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) | Metadata for a single URL retrieved by the [URLContextTool](./ai.urlcontexttool.md#urlcontexttool_interface) tool. |
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. |
141141
| [UsageMetadata](./ai.usagemetadata.md#usagemetadata_interface) | Usage metadata about a [GenerateContentResponse](./ai.generatecontentresponse.md#generatecontentresponse_interface)<!-- -->. |
142142
| [VideoMetadata](./ai.videometadata.md#videometadata_interface) | Describes the input video content. |
143143
| [VoiceConfig](./ai.voiceconfig.md#voiceconfig_interface) | <b><i>(Public Preview)</i></b> Configuration for the voice to used in speech synthesis. |
@@ -169,7 +169,7 @@ The Firebase AI Web SDK.
169169
| [POSSIBLE\_ROLES](./ai.md#possible_roles) | Possible roles. |
170170
| [ResponseModality](./ai.md#responsemodality) | <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
171171
| [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) | The status of a URL retrieval. |
172+
| [URLRetrievalStatus](./ai.md#urlretrievalstatus) | <b><i>(Public Preview)</i></b> The status of a URL retrieval. |
173173

174174
## Type Aliases
175175

@@ -202,7 +202,7 @@ The Firebase AI Web SDK.
202202
| [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/) |
203203
| [Tool](./ai.md#tool) | Defines a tool that model can call to access external knowledge. |
204204
| [TypedSchema](./ai.md#typedschema) | A type that includes all specific Schema types. |
205-
| [URLRetrievalStatus](./ai.md#urlretrievalstatus) | The status of a URL retrieval. |
205+
| [URLRetrievalStatus](./ai.md#urlretrievalstatus) | <b><i>(Public Preview)</i></b> The status of a URL retrieval. |
206206

207207
## function(app, ...)
208208

@@ -760,6 +760,9 @@ SchemaType: {
760760

761761
## URLRetrievalStatus
762762

763+
> 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.
764+
>
765+
763766
The status of a URL retrieval.
764767

765768
<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/>
@@ -1070,6 +1073,9 @@ export type TypedSchema = IntegerSchema | NumberSchema | StringSchema | BooleanS
10701073

10711074
## URLRetrievalStatus
10721075

1076+
> 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.
1077+
>
1078+
10731079
The status of a URL retrieval.
10741080

10751081
<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/>

docs-devsite/ai.urlcontext.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# URLContext interface
13+
> 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+
1316
Specifies the URL Context configuration.
1417

1518
<b>Signature:</b>

docs-devsite/ai.urlcontextmetadata.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# URLContextMetadata interface
13+
> 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+
1316
Metadata related to [URLContextTool](./ai.urlcontexttool.md#urlcontexttool_interface)<!-- -->.
1417

1518
<b>Signature:</b>
@@ -22,10 +25,13 @@ export interface URLContextMetadata
2225

2326
| Property | Type | Description |
2427
| --- | --- | --- |
25-
| [urlMetadata](./ai.urlcontextmetadata.md#urlcontextmetadataurlmetadata) | [URLMetadata](./ai.urlmetadata.md#urlmetadata_interface)<!-- -->\[\] | List of URL metadata used to provide context to the Gemini model. |
28+
| [urlMetadata](./ai.urlcontextmetadata.md#urlcontextmetadataurlmetadata) | [URLMetadata](./ai.urlmetadata.md#urlmetadata_interface)<!-- -->\[\] | <b><i>(Public Preview)</i></b> List of URL metadata used to provide context to the Gemini model. |
2629

2730
## URLContextMetadata.urlMetadata
2831

32+
> 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.
33+
>
34+
2935
List of URL metadata used to provide context to the Gemini model.
3036

3137
<b>Signature:</b>

docs-devsite/ai.urlcontexttool.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# URLContextTool interface
13+
> 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+
1316
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.
1417

1518
<b>Signature:</b>
@@ -22,10 +25,13 @@ export interface URLContextTool
2225

2326
| Property | Type | Description |
2427
| --- | --- | --- |
25-
| [urlContext](./ai.urlcontexttool.md#urlcontexttoolurlcontext) | [URLContext](./ai.urlcontext.md#urlcontext_interface) | Specifies the URL Context configuration. |
28+
| [urlContext](./ai.urlcontexttool.md#urlcontexttoolurlcontext) | [URLContext](./ai.urlcontext.md#urlcontext_interface) | <b><i>(Public Preview)</i></b> Specifies the URL Context configuration. |
2629

2730
## URLContextTool.urlContext
2831

32+
> 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.
33+
>
34+
2935
Specifies the URL Context configuration.
3036

3137
<b>Signature:</b>

docs-devsite/ai.urlmetadata.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ https://github.com/firebase/firebase-js-sdk
1010
{% endcomment %}
1111

1212
# URLMetadata interface
13+
> 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+
1316
Metadata for a single URL retrieved by the [URLContextTool](./ai.urlcontexttool.md#urlcontexttool_interface) tool.
1417

1518
<b>Signature:</b>
@@ -22,11 +25,14 @@ export interface URLMetadata
2225

2326
| Property | Type | Description |
2427
| --- | --- | --- |
25-
| [retrievedUrl](./ai.urlmetadata.md#urlmetadataretrievedurl) | string | The retrieved URL. |
26-
| [urlRetrievalStatus](./ai.urlmetadata.md#urlmetadataurlretrievalstatus) | [URLRetrievalStatus](./ai.md#urlretrievalstatus) | The status of the URL retrieval. |
28+
| [retrievedUrl](./ai.urlmetadata.md#urlmetadataretrievedurl) | string | <b><i>(Public Preview)</i></b> The retrieved URL. |
29+
| [urlRetrievalStatus](./ai.urlmetadata.md#urlmetadataurlretrievalstatus) | [URLRetrievalStatus](./ai.md#urlretrievalstatus) | <b><i>(Public Preview)</i></b> The status of the URL retrieval. |
2730

2831
## URLMetadata.retrievedUrl
2932

33+
> 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.
34+
>
35+
3036
The retrieved URL.
3137

3238
<b>Signature:</b>
@@ -37,6 +43,9 @@ retrievedUrl?: string;
3743

3844
## URLMetadata.urlRetrievalStatus
3945

46+
> 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.
47+
>
48+
4049
The status of the URL retrieval.
4150

4251
<b>Signature:</b>

packages/ai/src/types/requests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export interface GoogleSearch {}
325325
* URLs. By including URLs in your request, the Gemini model will access the content from those
326326
* pages to inform and enhance its response.
327327
*
328-
* @public
328+
* @beta
329329
*/
330330
export interface URLContextTool {
331331
/**
@@ -337,7 +337,7 @@ export interface URLContextTool {
337337
/**
338338
* Specifies the URL Context configuration.
339339
*
340-
* @public
340+
* @beta
341341
*/
342342
export interface URLContext {}
343343

packages/ai/src/types/responses.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ export interface Segment {
361361
/**
362362
* Metadata related to {@link URLContextTool}.
363363
*
364-
* @public
364+
* @beta
365365
*/
366366
export interface URLContextMetadata {
367367
/**
@@ -373,7 +373,7 @@ export interface URLContextMetadata {
373373
/**
374374
* Metadata for a single URL retrieved by the {@link URLContextTool} tool.
375375
*
376-
* @public
376+
* @beta
377377
*/
378378
export interface URLMetadata {
379379
/**
@@ -401,7 +401,7 @@ export interface URLMetadata {
401401
* <b>URL_RETRIEVAL_STATUS_UNSAFE:</b> The URL retrieval failed because the content is unsafe.
402402
* <br/>
403403
*
404-
* @public
404+
* @beta
405405
*/
406406
export const URLRetrievalStatus = {
407407
/**
@@ -441,7 +441,7 @@ export const URLRetrievalStatus = {
441441
* <b>URL_RETRIEVAL_STATUS_UNSAFE:</b> The URL retrieval failed because the content is unsafe.
442442
* <br/>
443443
*
444-
* @public
444+
* @beta
445445
*/
446446
export type URLRetrievalStatus =
447447
(typeof URLRetrievalStatus)[keyof typeof URLRetrievalStatus];

0 commit comments

Comments
 (0)