VoiceAgentLiveEvent type
GPT Liveから受信したイベント(未認識のサービスイベントを含む)。
type VoiceAgentLiveEvent =
| {
[K in LiveServerEventType]: K extends "decision.item.created"
? Omit<Extract<LiveServerEventUnion, { type: K }>, "item"> & {
item: VoiceAgentLiveDecisionStoredItem
}
: Extract<LiveServerEventUnion, { type: K }>
}[LiveServerEventType]
| VoiceAgentUnknownEvent