interface AMDCompletedEvent {
    category: AMDCategory;
    isError?: boolean;
    lastPrediction: null | AMDPredictionEvent;
    reason: AMDReason;
    type: "amd_completed";
    voicemailMessagePlayed: boolean;
}

Properties

category: AMDCategory

The call's category. Once the voicemail message has played, a goodbye that ends the box does not make it machine-unavailable: the category is the stage before it, machine-vm, or machine-ivr after a post-message menu.

isError?: boolean

Whether AMD stopped without detecting the call. Present on SDK-created events and not included in the wire format; optional so custom event fixtures remain structurally valid.

lastPrediction: null | AMDPredictionEvent

The last classified turn's prediction; null when the run ended before one.

reason: AMDReason
type: "amd_completed"
voicemailMessagePlayed: boolean