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. ThebaseUrl,apiVersionandheadersin itshttpOptionsoverride those of the client for this connection.- Returns:
- A
CompletableFuturethat resolves to anAsyncSessionupon successful connection. - Throws:
IllegalArgumentException- ifconfigsets any otherhttpOptionsfield.
-