Skip to content

Commit 9e4e910

Browse files
committed
Ensure EXPERIMENTAL added to doc comments, fill out doc comments
1 parent e9dc43e commit 9e4e910

21 files changed

+133
-85
lines changed

common/api-review/ai.api.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ export interface GenerativeContentBlob {
430430
export class GenerativeModel extends AIModel {
431431
constructor(ai: AI, modelParams: ModelParams, requestOptions?: RequestOptions, chromeAdapter?: ChromeAdapter | undefined);
432432
countTokens(request: CountTokensRequest | string | Array<string | Part>): Promise<CountTokensResponse>;
433-
static DEFAULT_HYBRID_IN_CLOUD_MODEL: string;
434433
generateContent(request: GenerateContentRequest | string | Array<string | Part>): Promise<GenerateContentResult>;
435434
generateContentStream(request: GenerateContentRequest | string | Array<string | Part>): Promise<GenerateContentStreamResult>;
436435
// (undocumented)
@@ -729,7 +728,7 @@ export class IntegerSchema extends Schema {
729728
constructor(schemaParams?: SchemaParams);
730729
}
731730

732-
// @public (undocumented)
731+
// @public
733732
export interface LanguageModelCreateCoreOptions {
734733
// (undocumented)
735734
expectedInputs?: LanguageModelExpected[];
@@ -739,48 +738,48 @@ export interface LanguageModelCreateCoreOptions {
739738
topK?: number;
740739
}
741740

742-
// @public (undocumented)
741+
// @public
743742
export interface LanguageModelCreateOptions extends LanguageModelCreateCoreOptions {
744743
// (undocumented)
745744
initialPrompts?: LanguageModelMessage[];
746745
// (undocumented)
747746
signal?: AbortSignal;
748747
}
749748

750-
// @public (undocumented)
749+
// @public
751750
export interface LanguageModelExpected {
752751
// (undocumented)
753752
languages?: string[];
754753
// (undocumented)
755754
type: LanguageModelMessageType;
756755
}
757756

758-
// @public (undocumented)
757+
// @public
759758
export interface LanguageModelMessage {
760759
// (undocumented)
761760
content: LanguageModelMessageContent[];
762761
// (undocumented)
763762
role: LanguageModelMessageRole;
764763
}
765764

766-
// @public (undocumented)
765+
// @public
767766
export interface LanguageModelMessageContent {
768767
// (undocumented)
769768
type: LanguageModelMessageType;
770769
// (undocumented)
771770
value: LanguageModelMessageContentValue;
772771
}
773772

774-
// @public (undocumented)
773+
// @public
775774
export type LanguageModelMessageContentValue = ImageBitmapSource | AudioBuffer | BufferSource | string;
776775

777-
// @public (undocumented)
776+
// @public
778777
export type LanguageModelMessageRole = 'system' | 'user' | 'assistant';
779778

780-
// @public (undocumented)
779+
// @public
781780
export type LanguageModelMessageType = 'text' | 'image' | 'audio';
782781

783-
// @public (undocumented)
782+
// @public
784783
export interface LanguageModelPromptOptions {
785784
// (undocumented)
786785
responseConstraint?: object;

docs-devsite/ai.generativemodel.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export declare class GenerativeModel extends AIModel
2929
3030
| Property | Modifiers | Type | Description |
3131
| --- | --- | --- | --- |
32-
| [DEFAULT\_HYBRID\_IN\_CLOUD\_MODEL](./ai.generativemodel.md#generativemodeldefault_hybrid_in_cloud_model) | <code>static</code> | string | Defines the name of the default in-cloud model to use for hybrid inference. |
3332
| [generationConfig](./ai.generativemodel.md#generativemodelgenerationconfig) | | [GenerationConfig](./ai.generationconfig.md#generationconfig_interface) | |
3433
| [requestOptions](./ai.generativemodel.md#generativemodelrequestoptions) | | [RequestOptions](./ai.requestoptions.md#requestoptions_interface) | |
3534
| [safetySettings](./ai.generativemodel.md#generativemodelsafetysettings) | | [SafetySetting](./ai.safetysetting.md#safetysetting_interface)<!-- -->\[\] | |
@@ -65,16 +64,6 @@ constructor(ai: AI, modelParams: ModelParams, requestOptions?: RequestOptions, c
6564
| requestOptions | [RequestOptions](./ai.requestoptions.md#requestoptions_interface) | |
6665
| chromeAdapter | [ChromeAdapter](./ai.chromeadapter.md#chromeadapter_interface) \| undefined | |
6766
68-
## GenerativeModel.DEFAULT\_HYBRID\_IN\_CLOUD\_MODEL
69-
70-
Defines the name of the default in-cloud model to use for hybrid inference.
71-
72-
<b>Signature:</b>
73-
74-
```typescript
75-
static DEFAULT_HYBRID_IN_CLOUD_MODEL: string;
76-
```
77-
7867
## GenerativeModel.generationConfig
7968
8069
<b>Signature:</b>

docs-devsite/ai.hybridparams.md

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

1212
# HybridParams interface
13-
Configures hybrid inference.
13+
(EXPERIMENTAL) Configures hybrid inference.
1414

1515
<b>Signature:</b>
1616

docs-devsite/ai.languagemodelcreatecoreoptions.md

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

1212
# LanguageModelCreateCoreOptions interface
13+
(EXPERIMENTAL) Used to configure the creation of an on-device language model session.
1314

1415
<b>Signature:</b>
1516

docs-devsite/ai.languagemodelcreateoptions.md

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

1212
# LanguageModelCreateOptions interface
13+
(EXPERIMENTAL) Used to configure the creation of an on-device language model session.
1314

1415
<b>Signature:</b>
1516

docs-devsite/ai.languagemodelexpected.md

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

1212
# LanguageModelExpected interface
13+
(EXPERIMENTAL) Options for an on-device language model expected inputs.
1314

1415
<b>Signature:</b>
1516

docs-devsite/ai.languagemodelmessage.md

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

1212
# LanguageModelMessage interface
13+
(EXPERIMENTAL) An on-device language model message.
1314

1415
<b>Signature:</b>
1516

docs-devsite/ai.languagemodelmessagecontent.md

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

1212
# LanguageModelMessageContent interface
13+
(EXPERIMENTAL) An on-device language model content object.
1314

1415
<b>Signature:</b>
1516

docs-devsite/ai.languagemodelpromptoptions.md

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

1212
# LanguageModelPromptOptions interface
13+
(EXPERIMENTAL) Options for an on-device language model prompt.
1314

1415
<b>Signature:</b>
1516

docs-devsite/ai.md

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,24 +82,24 @@ The Firebase AI Web SDK.
8282
| [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. |
8383
| [GroundingMetadata](./ai.groundingmetadata.md#groundingmetadata_interface) | Metadata returned when grounding is enabled.<!-- -->Currently, only Grounding with Google Search is supported (see [GoogleSearchTool](./ai.googlesearchtool.md#googlesearchtool_interface)<!-- -->).<!-- -->Important: If using Grounding with Google Search, you are required to comply with the "Grounding with Google Search" usage requirements for your chosen API provider: [Gemini Developer API](https://ai.google.dev/gemini-api/terms#grounding-with-google-search) or Vertex AI Gemini API (see [Service Terms](https://cloud.google.com/terms/service-terms) section within the Service Specific Terms). |
8484
| [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. |
85-
| [HybridParams](./ai.hybridparams.md#hybridparams_interface) | Configures hybrid inference. |
85+
| [HybridParams](./ai.hybridparams.md#hybridparams_interface) | (EXPERIMENTAL) Configures hybrid inference. |
8686
| [ImagenGCSImage](./ai.imagengcsimage.md#imagengcsimage_interface) | <b><i>(Public Preview)</i></b> An image generated by Imagen, stored in a Cloud Storage for Firebase bucket.<!-- -->This feature is not available yet. |
8787
| [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. |
8888
| [ImagenGenerationResponse](./ai.imagengenerationresponse.md#imagengenerationresponse_interface) | <b><i>(Public Preview)</i></b> The response from a request to generate images with Imagen. |
8989
| [ImagenInlineImage](./ai.imageninlineimage.md#imageninlineimage_interface) | <b><i>(Public Preview)</i></b> An image generated by Imagen, represented as inline data. |
9090
| [ImagenModelParams](./ai.imagenmodelparams.md#imagenmodelparams_interface) | <b><i>(Public Preview)</i></b> Parameters for configuring an [ImagenModel](./ai.imagenmodel.md#imagenmodel_class)<!-- -->. |
9191
| [ImagenSafetySettings](./ai.imagensafetysettings.md#imagensafetysettings_interface) | <b><i>(Public Preview)</i></b> Settings for controlling the aggressiveness of filtering out sensitive content.<!-- -->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details. |
9292
| [InlineDataPart](./ai.inlinedatapart.md#inlinedatapart_interface) | Content part interface if the part represents an image. |
93-
| [LanguageModelCreateCoreOptions](./ai.languagemodelcreatecoreoptions.md#languagemodelcreatecoreoptions_interface) | |
94-
| [LanguageModelCreateOptions](./ai.languagemodelcreateoptions.md#languagemodelcreateoptions_interface) | |
95-
| [LanguageModelExpected](./ai.languagemodelexpected.md#languagemodelexpected_interface) | |
96-
| [LanguageModelMessage](./ai.languagemodelmessage.md#languagemodelmessage_interface) | |
97-
| [LanguageModelMessageContent](./ai.languagemodelmessagecontent.md#languagemodelmessagecontent_interface) | |
98-
| [LanguageModelPromptOptions](./ai.languagemodelpromptoptions.md#languagemodelpromptoptions_interface) | |
93+
| [LanguageModelCreateCoreOptions](./ai.languagemodelcreatecoreoptions.md#languagemodelcreatecoreoptions_interface) | (EXPERIMENTAL) Used to configure the creation of an on-device language model session. |
94+
| [LanguageModelCreateOptions](./ai.languagemodelcreateoptions.md#languagemodelcreateoptions_interface) | (EXPERIMENTAL) Used to configure the creation of an on-device language model session. |
95+
| [LanguageModelExpected](./ai.languagemodelexpected.md#languagemodelexpected_interface) | (EXPERIMENTAL) Options for an on-device language model expected inputs. |
96+
| [LanguageModelMessage](./ai.languagemodelmessage.md#languagemodelmessage_interface) | (EXPERIMENTAL) An on-device language model message. |
97+
| [LanguageModelMessageContent](./ai.languagemodelmessagecontent.md#languagemodelmessagecontent_interface) | (EXPERIMENTAL) An on-device language model content object. |
98+
| [LanguageModelPromptOptions](./ai.languagemodelpromptoptions.md#languagemodelpromptoptions_interface) | (EXPERIMENTAL) Options for an on-device language model prompt. |
9999
| [ModalityTokenCount](./ai.modalitytokencount.md#modalitytokencount_interface) | Represents token counting info for a single modality. |
100100
| [ModelParams](./ai.modelparams.md#modelparams_interface) | Params passed to [getGenerativeModel()](./ai.md#getgenerativemodel_c63f46a)<!-- -->. |
101101
| [ObjectSchemaRequest](./ai.objectschemarequest.md#objectschemarequest_interface) | Interface for JSON parameters in a schema of [SchemaType](./ai.md#schematype) "object" when not using the <code>Schema.object()</code> helper. |
102-
| [OnDeviceParams](./ai.ondeviceparams.md#ondeviceparams_interface) | Encapsulates configuration for on-device inference. |
102+
| [OnDeviceParams](./ai.ondeviceparams.md#ondeviceparams_interface) | (EXPERIMENTAL) Encapsulates configuration for on-device inference. |
103103
| [PromptFeedback](./ai.promptfeedback.md#promptfeedback_interface) | If the prompt was blocked, this will be populated with <code>blockReason</code> and the relevant <code>safetyRatings</code>. |
104104
| [RequestOptions](./ai.requestoptions.md#requestoptions_interface) | Params passed to [getGenerativeModel()](./ai.md#getgenerativemodel_c63f46a)<!-- -->. |
105105
| [RetrievedContextAttribution](./ai.retrievedcontextattribution.md#retrievedcontextattribution_interface) | |
@@ -137,7 +137,7 @@ The Firebase AI Web SDK.
137137
| [ImagenAspectRatio](./ai.md#imagenaspectratio) | <b><i>(Public Preview)</i></b> Aspect ratios for Imagen images.<!-- -->To specify an aspect ratio for generated images, set the <code>aspectRatio</code> property in your [ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface)<!-- -->.<!-- -->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details and examples of the supported aspect ratios. |
138138
| [ImagenPersonFilterLevel](./ai.md#imagenpersonfilterlevel) | <b><i>(Public Preview)</i></b> A filter level controlling whether generation of images containing people or faces is allowed.<!-- -->See the <a href="http://firebase.google.com/docs/vertex-ai/generate-images">personGeneration</a> documentation for more details. |
139139
| [ImagenSafetyFilterLevel](./ai.md#imagensafetyfilterlevel) | <b><i>(Public Preview)</i></b> A filter level controlling how aggressively to filter sensitive content.<!-- -->Text prompts provided as inputs and images (generated or uploaded) through Imagen on Vertex AI are assessed against a list of safety filters, which include 'harmful categories' (for example, <code>violence</code>, <code>sexual</code>, <code>derogatory</code>, and <code>toxic</code>). This filter level controls how aggressively to filter out potentially harmful content from responses. See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) and the [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#safety-filters) for more details. |
140-
| [InferenceMode](./ai.md#inferencemode) | EXPERIMENTAL FEATURE Determines whether inference happens on-device or in-cloud. |
140+
| [InferenceMode](./ai.md#inferencemode) | (EXPERIMENTAL) Determines whether inference happens on-device or in-cloud. |
141141
| [Modality](./ai.md#modality) | Content part modality. |
142142
| [POSSIBLE\_ROLES](./ai.md#possible_roles) | Possible roles. |
143143
| [ResponseModality](./ai.md#responsemodality) | <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
@@ -160,10 +160,10 @@ The Firebase AI Web SDK.
160160
| [ImagenAspectRatio](./ai.md#imagenaspectratio) | <b><i>(Public Preview)</i></b> Aspect ratios for Imagen images.<!-- -->To specify an aspect ratio for generated images, set the <code>aspectRatio</code> property in your [ImagenGenerationConfig](./ai.imagengenerationconfig.md#imagengenerationconfig_interface)<!-- -->.<!-- -->See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) for more details and examples of the supported aspect ratios. |
161161
| [ImagenPersonFilterLevel](./ai.md#imagenpersonfilterlevel) | <b><i>(Public Preview)</i></b> A filter level controlling whether generation of images containing people or faces is allowed.<!-- -->See the <a href="http://firebase.google.com/docs/vertex-ai/generate-images">personGeneration</a> documentation for more details. |
162162
| [ImagenSafetyFilterLevel](./ai.md#imagensafetyfilterlevel) | <b><i>(Public Preview)</i></b> A filter level controlling how aggressively to filter sensitive content.<!-- -->Text prompts provided as inputs and images (generated or uploaded) through Imagen on Vertex AI are assessed against a list of safety filters, which include 'harmful categories' (for example, <code>violence</code>, <code>sexual</code>, <code>derogatory</code>, and <code>toxic</code>). This filter level controls how aggressively to filter out potentially harmful content from responses. See the [documentation](http://firebase.google.com/docs/vertex-ai/generate-images) and the [Responsible AI and usage guidelines](https://cloud.google.com/vertex-ai/generative-ai/docs/image/responsible-ai-imagen#safety-filters) for more details. |
163-
| [InferenceMode](./ai.md#inferencemode) | EXPERIMENTAL FEATURE Determines whether inference happens on-device or in-cloud. |
164-
| [LanguageModelMessageContentValue](./ai.md#languagemodelmessagecontentvalue) | |
165-
| [LanguageModelMessageRole](./ai.md#languagemodelmessagerole) | |
166-
| [LanguageModelMessageType](./ai.md#languagemodelmessagetype) | |
163+
| [InferenceMode](./ai.md#inferencemode) | (EXPERIMENTAL) Determines whether inference happens on-device or in-cloud. |
164+
| [LanguageModelMessageContentValue](./ai.md#languagemodelmessagecontentvalue) | (EXPERIMENTAL) Content formats that can be provided as on-device message content. |
165+
| [LanguageModelMessageRole](./ai.md#languagemodelmessagerole) | (EXPERIMENTAL) Allowable roles for on-device language model usage. |
166+
| [LanguageModelMessageType](./ai.md#languagemodelmessagetype) | (EXPERIMENTAL) Allowable types for on-device language model messages. |
167167
| [Modality](./ai.md#modality) | Content part modality. |
168168
| [Part](./ai.md#part) | Content part - includes text, image/video, or function call/response part types. |
169169
| [ResponseModality](./ai.md#responsemodality) | <b><i>(Public Preview)</i></b> Generation modalities to be returned in generation responses. |
@@ -504,7 +504,7 @@ ImagenSafetyFilterLevel: {
504504

505505
## InferenceMode
506506

507-
EXPERIMENTAL FEATURE Determines whether inference happens on-device or in-cloud.
507+
(EXPERIMENTAL) Determines whether inference happens on-device or in-cloud.
508508

509509
<b>Signature:</b>
510510

@@ -724,7 +724,7 @@ export type ImagenSafetyFilterLevel = (typeof ImagenSafetyFilterLevel)[keyof typ
724724

725725
## InferenceMode
726726

727-
EXPERIMENTAL FEATURE Determines whether inference happens on-device or in-cloud.
727+
(EXPERIMENTAL) Determines whether inference happens on-device or in-cloud.
728728

729729
<b>Signature:</b>
730730

@@ -734,6 +734,7 @@ export type InferenceMode = (typeof InferenceMode)[keyof typeof InferenceMode];
734734

735735
## LanguageModelMessageContentValue
736736

737+
(EXPERIMENTAL) Content formats that can be provided as on-device message content.
737738

738739
<b>Signature:</b>
739740

@@ -743,6 +744,7 @@ export type LanguageModelMessageContentValue = ImageBitmapSource | AudioBuffer |
743744

744745
## LanguageModelMessageRole
745746

747+
(EXPERIMENTAL) Allowable roles for on-device language model usage.
746748

747749
<b>Signature:</b>
748750

@@ -752,6 +754,7 @@ export type LanguageModelMessageRole = 'system' | 'user' | 'assistant';
752754

753755
## LanguageModelMessageType
754756

757+
(EXPERIMENTAL) Allowable types for on-device language model messages.
755758

756759
<b>Signature:</b>
757760

0 commit comments

Comments
 (0)