Skip to main content

agent_context/context/events/
outbound.rs

1//! AgentContext → 请求者的通知消息。
2
3// ---------------------------------------------------------------------------
4// NotifyCompressedForReply
5// ---------------------------------------------------------------------------
6
7/// 压缩完成通知,通过 [`RequestSubscribeCompressed`](super::subscribe::RequestSubscribeCompressed) 注册的订阅者处理。
8///
9/// `AgentContext` 压缩完成后将摘要和保留消息发送给订阅者,
10/// 订阅者返回修改后的 `(摘要, 保留)` 对,`AgentContext` 再写入对应区域。
11#[derive(Debug, Clone)]
12pub struct NotifyCompressedForReply<M> {
13    /// LLM 生成的摘要消息
14    pub summary: Vec<M>,
15    /// 保留的最近消息
16    pub kept: Vec<M>,
17}