Companion

object Companion

Functions

Link copied to clipboard
fun appendAudio(audio: String, eventId: String? = null): LiveEvent

Sends base64 raw audio on a primary WebSocket, after session.started.

Link copied to clipboard
fun appendCommentary(content: String, delegationId: String? = null, eventId: String? = null): LiveEvent

Supplies speakable context or a completed client-delegation result.

Link copied to clipboard
fun appendInstructions(content: String, delegationId: String? = null, eventId: String? = null): LiveEvent

Appends developer context; null delegationId applies it to the general session.

Link copied to clipboard
fun appendThinking(content: String, delegationId: String? = null, eventId: String? = null): LiveEvent

Supplies silent progress context; it is not a secrecy boundary.

Link copied to clipboard
fun closeSession(eventId: String? = null): LiveEvent

Gracefully ends a Live session. Continue collecting until session.closed for final usage.

Link copied to clipboard

Evaluates the configured Decision questions. Event IDs must be unique for the session.

Link copied to clipboard
fun createDecisionItem(item: DecisionInputItem, id: String? = null, eventId: String? = null): LiveEvent

Adds typed evidence for subsequent Decisions without starting an evaluation.

Link copied to clipboard
fun createResponse(eventId: String? = null): LiveEvent

Requests or continues work from the Responses backend after supplying tool outputs.

Link copied to clipboard

Adds an item to the Responses backend; a response must be requested separately.

Link copied to clipboard
fun deleteDecisionItem(itemId: String, eventId: String? = null): LiveEvent

Removes evidence from future Decisions without changing Live voice context.

Link copied to clipboard
fun muteInput(eventId: String? = null): LiveEvent

Mutes input audio without ending the session.

Link copied to clipboard
fun playAudio(audio: String, eventId: String? = null): LiveEvent

Plays a base64 fixture encoded as mono PCM16LE at 24 kHz, regardless of session audio settings.

Link copied to clipboard
fun start(session: LiveSessionConfig, eventId: String? = null): LiveEvent

Starts a primary WebSocket. SDK-scoped primary connections send this automatically.

Link copied to clipboard
fun startFork(session: LiveSessionOverrides = LiveSessionOverrides(), eventId: String? = null): LiveEvent

Starts a stored-session fork. The source model is inherited.

Link copied to clipboard
fun unmuteInput(eventId: String? = null): LiveEvent

Unmutes input audio.

Link copied to clipboard
fun updateSession(session: JsonObject, eventId: String? = null): LiveEvent

Updates mutable settings; JSON preserves explicit null and evolving backend options.