LiveEvent

@Serializable(with = LiveEvent.Serializer::class)
data class LiveEvent(val payload: JsonObject)

A Live protocol event retaining all original, including evolving backend-specific, JSON fields.

Constructors

Link copied to clipboard
constructor(payload: JsonObject)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
object Serializer : KSerializer<LiveEvent>

Preserves the entire event as its JSON wire representation.

Properties

Link copied to clipboard

Correlated client command identifier, when present.

Link copied to clipboard

Latest context-window utilization, when supplied.

Link copied to clipboard

Native Decisions result, when this is a decision.event response.

Link copied to clipboard

Delegation identifier used to correlate backend work.

Link copied to clipboard

Base64 audio or transcript text, according to type.

Link copied to clipboard
val endMs: Long?

Session-relative exclusive end in milliseconds, when supplied.

Link copied to clipboard

Service error details. Errors remain events and do not implicitly terminate a connection.

Link copied to clipboard
val event: JsonObject?

Nested Responses or Decisions event, preserved without narrowing its variants.

Link copied to clipboard

Event identifier, when present.

Link copied to clipboard
val payload: JsonObject
Link copied to clipboard
val session: JsonObject?

Complete session snapshot, including fields unknown to this SDK version.

Link copied to clipboard

Opaque session identifier on lifecycle events.

Link copied to clipboard

Session-relative audio/transcript start in milliseconds, when supplied.

Link copied to clipboard

Event discriminator.

Link copied to clipboard

Cumulative Live audio seconds. Do not sum this value across events.