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

    Interface TruncatingContextCompactorOptions

    interface TruncatingContextCompactorOptions {
        preserveLeadingEvents?: number;
        threshold: number;
    }

    Properties

    preserveLeadingEvents?: number

    Keep the first X events in the history, which often act as the initial grounding prompt.

    threshold: number

    The maximum number of events to retain in the session history.