Stay organized with collections
Save and categorize content based on your preferences.
Firebase.AI.LiveGenerativeModel
A live, generative AI model for real-time interaction.
Summary
See the Cloud documentation for more details about the low-latency, two-way interactions that use text, audio, and video input, with audio and text output.
Warning: For FirebaseAI, Live Model is in Public Preview, which means that the feature is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.
Public functions
|
ConnectAsync(CancellationToken cancellationToken)
|
Establishes a connection to a live generation service.
|
Public functions
ConnectAsync
async Task< LiveSession > ConnectAsync(
CancellationToken cancellationToken
)
Establishes a connection to a live generation service.
This function handles the WebSocket connection setup and returns an LiveSession
object that can be used to communicate with the service.
Details |
Parameters |
cancellationToken
|
The token that can be used to cancel the creation of the session.
|
|
Returns
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["Firebase.AI.LiveGenerativeModel\n\nA live, generative [AI](/docs/reference/unity/namespace/firebase/a-i#namespace_firebase_1_1_a_i) model for real-time interaction.\n\nSummary\n\nSee the [Cloud documentation](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/multimodal-live) for more details about the low-latency, two-way interactions that use text, audio, and video input, with audio and text output.\n\nWarning: For [Firebase](/docs/reference/unity/namespace/firebase#namespace_firebase)[AI](/docs/reference/unity/namespace/firebase/a-i#namespace_firebase_1_1_a_i), Live Model is in Public Preview, which means that the feature is not subject to any SLA or deprecation policy and could change in backwards-incompatible ways.\n\nPublic functions \n\nConnectAsync \n\n```c#\nasync Task\u003c LiveSession \u003e ConnectAsync(\n CancellationToken cancellationToken\n)\n``` \nEstablishes a connection to a live generation service.\n\nThis function handles the WebSocket connection setup and returns an [LiveSession](/docs/reference/unity/class/firebase/a-i/live-session#class_firebase_1_1_a_i_1_1_live_session) object that can be used to communicate with the service.\n\n\u003cbr /\u003e"]]