Companion

object Companion

Functions

Link copied to clipboard

Appends base64 audio to a conversation or translation session input buffer.

Link copied to clipboard

Cancels an in-progress model response.

Link copied to clipboard

Clears the conversation audio buffer.

Link copied to clipboard

Closes a continuous translation session gracefully.

Link copied to clipboard

Commits a manually managed conversation audio buffer.

Link copied to clipboard
fun createResponse(response: JsonObject? = null): RealtimeEvent

Requests a model response.

Link copied to clipboard
fun functionOutput(callId: String, output: String): RealtimeEvent

Supplies a function tool result as a conversation item. Request a response separately when needed.

Link copied to clipboard
fun updateSession(session: JsonObject): RealtimeEvent

Updates session configuration; explicit JSON null can disable supported settings.