Documentation
¶
Overview ¶
Package reminder 管理 Coordinator / SubAgent 的 StopGuard 与可选的每轮 reminder。
重构说明(2026-04-20):
- 原有 flow / queue_guard / book_complete 三条每轮 reminder 已被 Host Flow Router 取代 (`internal/host/flow/`)。
- 这里保留 Aggregate/Default 的装配点,方便未来新增无法用路由表达的"事实提醒"。
- StopGuard(Coordinator + 三个子代理)仍由本包对外暴露,见 stop_guard.go / subagent_guards.go。
Index ¶
- func Aggregate(st *store.Store, gens ...Generator) agentcore.ReminderGenerator
- func NewArchitectStopGuard(st *store.Store) agentcore.StopGuard
- func NewEditorStopGuard(st *store.Store) agentcore.StopGuard
- func NewStopGuard(st *store.Store, onBlock func(reason string, consecutive int32)) agentcore.StopGuard
- func NewWriterStopGuard(st *store.Store) agentcore.StopGuard
- type Generator
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregate ¶
func Aggregate(st *store.Store, gens ...Generator) agentcore.ReminderGenerator
Aggregate 把一组 Generator 组合成 agentcore.ReminderGenerator。 每轮一次性拉快照,按注册顺序逐个询问;相同 Source 后写覆盖先写。
func NewArchitectStopGuard ¶
NewArchitectStopGuard 要求 architect 本轮至少落盘一次 save_foundation。
func NewEditorStopGuard ¶
NewEditorStopGuard 要求 editor 本轮至少落盘一次审阅或摘要。
Types ¶
Click to show internal directories.
Click to hide internal directories.