RealtimeSession

Properties

Link copied to clipboard

Cold-replay flow of vendor-neutral RealtimeEvents.

Link copied to clipboard
val rawEvents: Flow<JsonObject>

Power-user / debugging surface: raw provider events, re-published by the broker.

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun clearAudio()

Clear pending audio in the input buffer without committing.

Link copied to clipboard
suspend fun close()

Close the session and tear down the gateway transport.

Link copied to clipboard
suspend fun commit()

Manually commit the input audio buffer and ask for a response.

Link copied to clipboard
suspend fun interrupt()

Cancel any in-flight response and abort tool execution.

Link copied to clipboard
fun sendAudio(audio: Flow<AudioFrame>): Job

Stream PCM16 audio frames into the session's input buffer.

Link copied to clipboard
suspend fun sendText(text: String)

Send a text user message into the conversation and ask for a response.