1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//! AgentContext → 请求者的通知消息。
//!
//! 这些消息由 `AgentContext` Actor 发出,通知订阅者或压缩消息或摘要后编辑者 Actor。
use crateRole;
// ---------------------------------------------------------------------------
// NotifyChange
// ---------------------------------------------------------------------------
/// incremental 区的变更通知,通过 [`subscribe_change`](crate::AgentContext::subscribe_change) 发送给订阅者。
// ---------------------------------------------------------------------------
// NotifyCompressedForReply
// ---------------------------------------------------------------------------
/// 压缩完成通知,通过 [`subscribe_compressed`](crate::AgentContext::subscribe_compressed) 注册的压缩消息或摘要后编辑者 Actor 处理。
///
/// `AgentContext` 压缩完成后将摘要和保留消息发送给压缩消息或摘要后编辑者 Actor,
/// 压缩消息或摘要后编辑者 Actor 返回修改后的 `(摘要, 保留)` 对,`AgentContext` 再写入对应区域。