Agent Client Protocol - v0.14.1
    Preparing search index...

    Type Alias UsageExperimental

    UNSTABLE

    This capability is not part of the spec yet, and may be removed or changed at any point.

    Token usage information for a prompt turn.

    type Usage = {
        cachedReadTokens?: number | null;
        cachedWriteTokens?: number | null;
        inputTokens: number;
        outputTokens: number;
        thoughtTokens?: number | null;
        totalTokens: number;
    }
    Index

    Properties

    cachedReadTokens?: number | null

    Total cache read tokens.

    cachedWriteTokens?: number | null

    Total cache write tokens.

    inputTokens: number

    Total input tokens across all turns.

    outputTokens: number

    Total output tokens across all turns.

    thoughtTokens?: number | null

    Total thought/reasoning tokens

    totalTokens: number

    Sum of all token types across session.