ACP v2 TypeScript SDK — EXPERIMENTAL DRAFT - v1.3.0
    Preparing search index...

    Type Alias UsageUpdateExperimental

    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 (optional).

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

    The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.

    See protocol docs: Extensibility