BetaInternalBetaCloses this session. All methods on this session will throw an error once this resolves.
BetaYields messages received from the server. This can only be used by one consumer at a time.
An AsyncGenerator that yields server messages as they arrive.
BetaSends content to the server.
The message to send to the model.
Indicates if the turn is complete. Defaults to false.
BetaSends audio data to the server in realtime.
The base64-encoded PCM data to send to the server in realtime.
BetaSends function responses to the server.
The function responses to send.
BetaSends realtime input to the server.
The media chunks to send.
BetaThe stream of GenerativeContentBlob to send.
Use sendTextRealtime(), sendAudioRealtime(), and sendVideoRealtime() instead.
Sends a stream of GenerativeContentBlob.
BetaSends video data to the server in realtime.
The base64-encoded video data to send to the server in realtime.
Represents an active, real-time, bidirectional conversation with the model.
This class should only be instantiated by calling LiveGenerativeModel.connect.