VoiceAgentLiveEvent type
Ereignisse, die von GPT Live empfangen werden, einschließlich nicht anerkannter Serviceveranstaltungen.
type VoiceAgentLiveEvent =
| {
[K in LiveServerEventType]: K extends "decision.item.created"
? Omit<Extract<LiveServerEventUnion, { type: K }>, "item"> & {
item: VoiceAgentLiveDecisionStoredItem
}
: Extract<LiveServerEventUnion, { type: K }>
}[LiveServerEventType]
| VoiceAgentUnknownEvent