ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias UsageUpdate

    Context window and cost update for a session.

    type UsageUpdate = {
        used: number;
        size: number;
        cost?: Cost | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    used: number

    Tokens currently in context.

    size: number

    Total context window size in tokens.

    cost?: Cost | null

    Cumulative session cost.

    Omitted leaves the last reported cost unchanged. null clears it. A value replaces it.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted leaves the stored metadata unchanged. null clears it. An object patches the stored metadata by top-level key: keys it omits are unchanged, a key set to null is removed, and any other value replaces that key's stored value without merging nested objects. Beyond this patch rule, implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Metadata Patches