runLive

open fun runLive(userId: String, sessionId: String, liveRequestQueue: LiveRequestQueue, runConfig: RunConfig? = null): Flow<Event>

Runs the agent over a live (bidirectional streaming) connection and returns a cold Flow of the conversation's Events, delivering inline audio, video, and image data to the caller without storing it in the session. Closing the caller-owned liveRequestQueue ends the run, and RunConfig.maxLlmCalls does not apply to a live run. A Runner that does not override this fails with UnsupportedOperationException when the flow is collected.

Return

The run's events.

Parameters

userId

The user ID of the session.

sessionId

The session ID, fetched or created when collection starts.

liveRequestQueue

The queue for content, media, and activity signals.

runConfig

The run configuration, or null for the RunConfig() defaults.