agent-context 0.1.5

Multi-backend agent context manager with three-zone memory model
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! AgentContext → 请求者的通知消息。

// ---------------------------------------------------------------------------
// NotifyCompressedForReply
// ---------------------------------------------------------------------------

/// 压缩完成通知,通过 [`RequestSubscribeCompressed`](super::subscribe::RequestSubscribeCompressed) 注册的订阅者处理。
///
/// `AgentContext` 压缩完成后将摘要和保留消息发送给订阅者,
/// 订阅者返回修改后的 `(摘要, 保留)` 对,`AgentContext` 再写入对应区域。
#[derive(Debug, Clone)]
pub struct NotifyCompressedForReply<M> {
    /// LLM 生成的摘要消息
    pub summary: Vec<M>,
    /// 保留的最近消息
    pub kept: Vec<M>,
}