CoAgent8
    Preparing search index...

    Function formatUsage

    • The footer line with a turn's token counts and, when it can be computed without guessing, their list-price equivalent (AX-001g).

      Parameters

      Returns string | undefined

      The line, or undefined when the backend reported no counts.

      Reasoning is part of output, and cache reads and writes are parts of input, so none is counted twice. An amount needs known input, cache-read, cache-write and output counts and a price for each part used. Writes kept for an hour have their own price: when the list names one and the backend did not split its writes, no amount is shown. A turn whose input reached the size from which the list prices prompts differently shows none either, since a turn's total does not say how large each request was. Unknown is never taken as zero. It is a list-price equivalent, not billing: a subscription CLI may charge nothing per token.