mlx-bun library API
    Preparing search index...

    A request's state, owned by the caller.

    interface AcquiredState {
        attachments?: CheckpointAttachment[];
        caches: Cache[];
        continuation?: ContinuationState;
        retain?: () => void;
        reusedTokens: number;
    }
    Index
    attachments?: CheckpointAttachment[]

    Method state stored with a reused prefix.

    caches: Cache[]

    Restored, a reused prefix (composed as the graph's caches), or fresh.

    continuation?: ContinuationState

    A resumed generation: caches cover its prompt and generated tokens.

    retain?: () => void

    Releases the backing of reused state; run it after disposing caches.

    reusedTokens: number

    Prompt tokens caches already cover; 0 is a miss.