Cell API
    Preparing search index...

    Class UsageUtilAbstract

    An utility class to provide support methods handling Usage.

    Index
    • Accumulate usage tokens from the previous chat response to the current usage tokens.

      Parameters

      • currentUsage: Usage

        the current usage.

      • OptionalpreviousChatResponse: ChatResponse

        the previous chat response.

      Returns Usage

      accumulated usage.