@launchdarkly/server-sdk-ai-vercel - v0.7.35
    Preparing search index...

    Function getAIMetricsFromStream

    • 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>