Skip to content

uni-flow 公开 API(中文注解)


uni-flow 公开 API(中文注解) / CompactionStrategy

Type Alias: CompactionStrategy

CompactionStrategy = { maxTokens: number; type: "sliding-window"; } | { model: string; threshold: number; type: "summarize"; } | { keepRecent: number; maxTokens: number; type: "importance-rank"; }

Defined in: layer4/types.ts:18

上下文压缩策略:滑动窗口 / 摘要 / 重要性排序。

MIT Licensed