VoiceAgentRealtimeEvent type

An event received from a Realtime voice session.

Check type to handle a known event or VoiceAgentUnknownEvent. Exclude "unknown" before passing an event to a handler for known events only.

type VoiceAgentRealtimeEvent = VoiceAgentServerEvent | VoiceAgentUnknownEvent