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
- ALiveConnectConfig
configuration for the live connection. May be null.- Returns:
- A
CompletableFuture
that resolves to anAsyncSession
upon successful connection.
-