Liu Yuan
7eba27c3c4
feat: add ContextManager abstraction for pluggable context management (#2203)
- Define ContextManager interface with Assemble/Compact/Ingest methods
- Implement legacyContextManager wrapping existing summarization logic
- Wire Assemble (before BuildMessages), Compact (post-turn + overflow),
and Ingest (after message persistence) into agent loop
- Add ContextManager config field and factory registry with config passthrough
- Remove old maybeSummarize/summarizeSession/summarizeBatch/etc from loop.go
- All existing tests pass with default (legacy) config
Co-authored-by: Liu Yuan <namei.unix@gmail.com>
2026-04-02 00:08:15 +08:00
..
2026-03-31 16:33:24 +07:00
2026-03-31 17:09:01 +07:00
2026-03-22 19:21:58 +08:00
2026-04-02 00:08:15 +08:00
2026-04-02 00:08:15 +08:00
2026-04-02 00:08:15 +08:00
2026-03-23 17:24:46 +08:00
2026-03-29 01:14:39 +08:00
2026-03-22 19:21:58 +08:00
2026-03-22 19:21:58 +08:00
2026-04-02 00:08:15 +08:00
2026-03-22 19:21:58 +08:00
2026-04-02 00:08:15 +08:00
2026-03-23 10:54:08 +08:00
2026-03-22 19:21:58 +08:00
2026-03-22 19:21:58 +08:00
2026-03-22 19:21:58 +08:00
2026-03-23 10:54:08 +08:00
2026-03-22 19:21:58 +08:00
2026-03-25 21:02:49 +08:00
2026-03-28 15:25:23 +08:00
2026-03-19 17:03:17 +08:00
2026-03-19 17:03:17 +08:00
2026-03-22 23:36:25 +01:00
2026-03-31 11:07:32 +08:00
2026-04-02 00:08:15 +08:00
2026-02-27 16:35:07 +08:00
2026-02-19 22:05:15 +02:00
2026-03-19 21:44:01 +08:00
2026-03-12 13:52:55 +08:00
2026-03-10 15:14:09 +08:00
2026-03-23 10:54:08 +08:00
2026-03-22 20:35:14 +08:00
2026-03-23 10:54:08 +08:00
2026-04-01 23:44:41 +08:00
2026-03-05 09:51:18 +08:00
2026-03-05 09:51:18 +08:00
2026-04-02 00:08:15 +08:00