IFClite TypeScript API
    Preparing search index...

    Function anthropicUsage

    • Anthropic Messages: the accumulated usage of the final message (message_start.message.usage, updated by message_delta.usage). input_tokens excludes cache reads and writes, so they are added back to keep inputTokens comparable with the OpenAI-style total.

      Parameters

      • usage: unknown

      Returns TokenUsage | null