f7a720204a
- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用 - 添加所有子项目的完整源代码 - 保留原始 .git 为 .git.bak 备份
14 lines
409 B
Rust
14 lines
409 B
Rust
//! Multi-level context compaction for long conversations.
|
|
//!
|
|
//! Three levels, from lightest to heaviest:
|
|
//! - **Microcompact**: clears old tool result content (no LLM call)
|
|
//! - **Autocompact**: watermark-triggered LLM summarization
|
|
//! - **Emergency**: blocks API calls when near the context window limit
|
|
|
|
pub mod auto;
|
|
pub mod emergency;
|
|
pub mod estimate;
|
|
pub mod micro;
|
|
pub mod prompt;
|
|
pub mod state;
|