@suluk/cost - v0.2.0
    Preparing search index...

    Function computeCost

    • Compute the actual µ$ a request cost, from its declared model + the usage the handler reported. Fixed (per-call) components always count; variable components count their reported units × unit cost. Returns the per-source breakdown + total — raw, for the meter to record.

      Parameters

      Returns { breakdown: { source: string; microUsd: number }[]; totalMicroUsd: number }