@langwatch/scenario
    Preparing search index...

    Function computeLatencyMetrics

    • Compute aggregate response-time stats from per-turn measurements.

      Returned avgResponseTime / p50ResponseTime / p95ResponseTime are undefined when measurements is empty — matches the Python Optional semantics. p95 uses a ceiling-style index so the tail (not the body) is surfaced.

      Parameters

      • input: {
            interruptResponseTime?: number;
            measurements?: readonly number[];
            timeToFirstByte?: number;
        }

      Returns LatencyMetrics