RealtimeEvent
Vendor-neutral event observed during a realtime session.
Mirrors the design in REALTIME.md §9b — names are framed in terms of the conversation a developer is observing, not OpenAI's wire-level event vocabulary. The raw provider events remain available via com.mojentic.realtime.RealtimeGatewaySession.rawEvents for power users.
The union is intentionally large rather than collapsed-and-then-recovered: UI consumers subscribe to *Delta events; loggers / tests subscribe to the non-delta variants. Both fire — consumers don't reassemble.
Inheritors
Types
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class AssistantTurnCompleted(val turnId: String, val inputTokens: Int? = null, val outputTokens: Int? = null, val totalTokens: Int? = null) : RealtimeEvent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Interrupted(val turnId: String?, val reason: RealtimeEvent.InterruptionReason) : RealtimeEvent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ToolCallCompleted(val callId: String, val name: String, val result: String) : RealtimeEvent
Link copied to clipboard
Link copied to clipboard
data class ToolCallFailed(val callId: String, val name: String, val error: Throwable) : RealtimeEvent
Link copied to clipboard
data class ToolCallStarted(val turnId: String, val callId: String, val name: String) : RealtimeEvent
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard