• Get AI metrics from a Vercel AI SDK streaming result.

    Awaits the stream's terminal promises and prefers totalUsage over usage for cumulative usage across all steps.

    Parameters

    • stream: StreamResponse

    Returns Promise<LDAIMetrics>

Generated using TypeDoc