LiveRequestQueue

The input side of a live conversation: everything the user sends reaches the agent through one of these, from any thread and without suspending, so audio can be pushed from a microphone callback or a UI handler without a coroutine.

The cost is an unbounded queue: a producer faster than the agent grows it without limit, an entry per audio chunk spoken.

ADK Python makes the same trade, with an asyncio.Queue that sets no maximum.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun close()

Closes the queue; calling it again is harmless.

Link copied to clipboard

Sends request; a LiveRequest.close request delivers its LiveRequest.stateDelta, then closes the queue.

Link copied to clipboard

Marks the end of user activity, when automatic activity detection is disabled.

Link copied to clipboard

Marks the start of user activity, when automatic activity detection is disabled.

Link copied to clipboard

Marks the end of the audio stream, forcing the model to flush what it has.

Link copied to clipboard

Sends content in turn-by-turn mode.

Link copied to clipboard

Sends a RealtimeInput.Audio chunk, a RealtimeInput.Video frame, or an activity signal in realtime mode.