Files
deepseek-harness/packages/compact/README.zh.md
2026-08-05 16:16:57 +08:00

15 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# compact/ — 压缩能力家族
[English](README.md) | 中文
一个压缩compaction能力家族参见[能力 seam](../../.agents/notes/implemented/architecture/2026-06-13-capability-seams.md)):抽象接口、摘要后端、无模型工具结果修剪配套工具,以及用户命令适配器。这些全是**产品**包。
| 包 | 职责 | ctx key |
|---|---|---|
| [`compact/`](compact/README.md) | 压缩 seam 与事件词汇 | `ctx.compact` |
| [`compact-basic/`](compact-basic/README.md) | token 压力与摘要后端 | 注册 `ctx.compact` |
| [`compact-tool-result-prune/`](compact-tool-result-prune/README.md) | 可选的无模型工具结果修剪 | `ctx.toolResultPrune` |
| [`command-compact/`](command-compact/README.md) | 用户压缩命令 | 注册到 `ctx.commands` |
后端、可选修剪器和用户命令通过该 seam 组合token 测量仍是独立的 LLM大语言模型家族服务。[压缩能力 seam Agent Note](../../.agents/notes/implemented/feature/2026-06-18-compaction-capability-seam.md)负责依赖关系的设计原理。