Package com.google.genai
Class AsyncLive
java.lang.Object
com.google.genai.AsyncLive
AsyncLive provides asynchronous access to a bidirectional GenAI live session. The live module is
experimental.
-
Method Summary
Modifier and TypeMethodDescriptionconnect(String model, LiveConnectConfig config) Connects to the live server.
-
Method Details
-
connect
Connects to the live server.- Parameters:
model- The model name to use.config- ALiveConnectConfigconfiguration for the live connection. May be null.- Returns:
- A
CompletableFuturethat resolves to anAsyncSessionupon successful connection.
-