SessionCheckpointOptions
이 콘텐츠는 아직 번역되지 않았습니다.
createSession.checkpoints 选项(缺省值随注)
autoBeforeClear?
Section titled “autoBeforeClear?”optional autoBeforeClear?: boolean;历史清空前自动落 pre_clear 快照;缺省 true。预留位:AgentSession 当前无 清空入口(TUI /clear 归 cli sink 自有钩子),本项在场只作类型/缺省登记。
autoBeforeCompact?
Section titled “autoBeforeCompact?”optional autoBeforeCompact?: boolean;compact()/自动压缩前自动落 pre_compaction 快照;缺省 true
optional dir?: string;独立快照根目录(createFileCheckpointStore({ dir });与 store 互斥)
optional max?: number;同会话快照数上限;到顶按时间序淘汰最旧,不分 trigger(缺省不限)。= retention.max
别名(同给时 retention 优先)。刚写入者恒保留(max:0 留 1)。
retention?
Section titled “retention?”optional retention?: CheckpointRetention;保留策略(与 kernel CheckpointRetention 同形):max / maxAgeDays 并集,先按龄再按数;
store / dir / 同居三形态同一淘汰律(kernel planCheckpointRetention)。
store?
Section titled “store?”optional store?: CheckpointStore;自建快照存储(与 dir 互斥;同给抛 invalid_options)
이 페이지가 도움이 되었나요?
피드백 감사합니다. 이 문서를 계속 개선하겠습니다.