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-internal-missing-underscore) The name "GoogleAICitationMetadata" should be prefixed with an underscore because the declaration is marked as @internal
@@ -1312,6 +1328,25 @@ export class StringSchema extends Schema {
Copy file name to clipboardExpand all lines: docs-devsite/ai.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,8 @@ The Firebase AI Web SDK.
22
22
|[getGenerativeModel(ai, modelParams, requestOptions)](./ai.md#getgenerativemodel_c63f46a)| Returns a [GenerativeModel](./ai.generativemodel.md#generativemodel_class) class with methods for inference and other functionality. |
23
23
|[getImagenModel(ai, modelParams, requestOptions)](./ai.md#getimagenmodel_e1f6645)| Returns an [ImagenModel](./ai.imagenmodel.md#imagenmodel_class) class with methods for using Imagen.<!---->Only Imagen 3 models (named <code>imagen-3.0-*</code>) are supported. |
24
24
|[getLiveGenerativeModel(ai, modelParams)](./ai.md#getlivegenerativemodel_f2099ac)| <b><i>(Public Preview)</i></b> Returns a [LiveGenerativeModel](./ai.livegenerativemodel.md#livegenerativemodel_class) class for real-time, bidirectional communication.<!---->The Live API is only supported in modern browser windows and Node ><!---->= 22. |
25
+
|[getTemplateGenerativeModel(ai, requestOptions)](./ai.md#gettemplategenerativemodel_9476bbc)| <b><i>(Public Preview)</i></b> Returns a [TemplateGenerativeModel](./ai.templategenerativemodel.md#templategenerativemodel_class) class for executing server-side templates. |
26
+
|[getTemplateImagenModel(ai, requestOptions)](./ai.md#gettemplateimagenmodel_9476bbc)| <b><i>(Public Preview)</i></b> Returns a [TemplateImagenModel](./ai.templateimagenmodel.md#templateimagenmodel_class) class for executing server-side Imagen templates. |
25
27
| <b>function(liveSession, ...)</b> |
26
28
|[startAudioConversation(liveSession, options)](./ai.md#startaudioconversation_01c8e7f)| <b><i>(Public Preview)</i></b> Starts a real-time, bidirectional audio conversation with the model. This helper function manages the complexities of microphone access, audio recording, playback, and interruptions. |
27
29
@@ -47,6 +49,8 @@ The Firebase AI Web SDK.
47
49
|[ObjectSchema](./ai.objectschema.md#objectschema_class)| Schema class for "object" types. The <code>properties</code> param must be a map of <code>Schema</code> objects. |
48
50
|[Schema](./ai.schema.md#schema_class)| Parent class encompassing all Schema types, with static methods that allow building specific Schema types. This class can be converted with <code>JSON.stringify()</code> into a JSON string accepted by Vertex AI REST endpoints. (This string conversion is automatically done when calling SDK methods.) |
49
51
|[StringSchema](./ai.stringschema.md#stringschema_class)| Schema class for "string" types. Can be used with or without enum values. |
52
+
|[TemplateGenerativeModel](./ai.templategenerativemodel.md#templategenerativemodel_class)| <b><i>(Public Preview)</i></b> [GenerativeModel](./ai.generativemodel.md#generativemodel_class) APIs that execute on a server-side template.<!---->This class should only be instantiated with [getTemplateGenerativeModel()](./ai.md#gettemplategenerativemodel_9476bbc)<!---->. |
53
+
|[TemplateImagenModel](./ai.templateimagenmodel.md#templateimagenmodel_class)| <b><i>(Public Preview)</i></b> Class for Imagen model APIs that execute on a server-side template.<!---->This class should only be instantiated with [getTemplateImagenModel()](./ai.md#gettemplateimagenmodel_9476bbc)<!---->. |
50
54
|[VertexAIBackend](./ai.vertexaibackend.md#vertexaibackend_class)| Configuration class for the Vertex AI Gemini API.<!---->Use this with [AIOptions](./ai.aioptions.md#aioptions_interface) when initializing the AI service via [getAI()](./ai.md#getai_a94a413) to specify the Vertex AI Gemini API as the backend. |
0 commit comments