[Go to site: main page, start]

ADK for TypeScript: API Reference
    Preparing search index...

    Interface AnchoredContextCompactorOptions

    interface AnchoredContextCompactorOptions {
        eventRetentionSize: number;
        summarizer: BaseSummarizer;
        tokenThreshold: number;
    }

    Properties

    eventRetentionSize: number

    The minimum number of raw events to keep at the end of the session. Compaction will not affect these tail events (unless needed for tool splits).

    summarizer: BaseSummarizer

    The summarizer used to create the compacted event content.

    tokenThreshold: number

    The maximum number of tokens to retain in the session history before compaction.