Neutrome SDK reference
    Preparing search index...

    Function getUsage

    • Reads the provider usage payload attached to a response.

      Parameters

      • program: Program

        Response or stream chunk to read.

      Returns unknown

      The decoded usage object, or undefined when the provider sent none.

      The shape is provider-specific and deliberately left as unknown.