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

    Type Alias UsageUpdateExperimental

    UNSTABLE

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

    Context window and cost update for a session.

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

    Properties

    Properties

    _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

    cost?: Cost | null

    Cumulative session cost (optional).

    size: number

    Total context window size in tokens.

    used: number

    Tokens currently in context.