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

    Interface TrajectoryThoughtPruningCompactorOptions

    `TrajectoryThoughtPruningCompactor` 的相关选项。

    interface TrajectoryThoughtPruningCompactorOptions {
        eventRetentionSize: number;
    }
    eventRetentionSize: number

    会话结束时需要保留的最少原始事件数量。 压缩操作不会影响这些位于事件列表末尾的事件。