// This file was auto-generated by Fern from our API Definition.

import type * as Vapi from "../index.js";

export interface PerformanceMetrics {
    /** These are the individual latencies for each turn. */
    turnLatencies?: Vapi.TurnLatency[] | undefined;
    /** This is the average latency for the model to output the first token. */
    modelLatencyAverage?: number | undefined;
    /** This is the average latency for the text to speech. */
    voiceLatencyAverage?: number | undefined;
    /** This is the average latency for the transcriber. */
    transcriberLatencyAverage?: number | undefined;
    /** This is the average latency for the endpointing. */
    endpointingLatencyAverage?: number | undefined;
    /** This is the average latency for complete turns. */
    turnLatencyAverage?: number | undefined;
    /** This is the average latency for packets received from the transport provider in milliseconds. */
    fromTransportLatencyAverage?: number | undefined;
    /** This is the average latency for packets sent to the transport provider in milliseconds. */
    toTransportLatencyAverage?: number | undefined;
    /** This is the number of times the user was interrupted by the assistant during the call. */
    numUserInterrupted?: number | undefined;
    /** This is the number of times the assistant was interrupted by the user during the call. */
    numAssistantInterrupted?: number | undefined;
}
