VoiceAgentLiveEvent type
Zdarzenia otrzymane od GPT Live, w tym zdarzenia usługowe nierozpoznane.
type VoiceAgentLiveEvent =
| {
[K in LiveServerEventType]: K extends "decision.item.created"
? Omit<Extract<LiveServerEventUnion, { type: K }>, "item"> & {
item: VoiceAgentLiveDecisionStoredItem
}
: Extract<LiveServerEventUnion, { type: K }>
}[LiveServerEventType]
| VoiceAgentUnknownEvent