legacyContextManager wraps the existing summarization/compression logic as a ContextManager implementation. It is the default when no other ContextManager is configured.
| 16 | // as a ContextManager implementation. It is the default when no other |
| 17 | // ContextManager is configured. |
| 18 | type legacyContextManager struct { |
| 19 | al *AgentLoop |
| 20 | summarizing sync.Map // dedup for async Compact (post-turn) |
| 21 | } |
| 22 | |
| 23 | func (m *legacyContextManager) Assemble(_ context.Context, req *AssembleRequest) (*AssembleResponse, error) { |
| 24 | // Legacy: read history from session, return as-is. |
nothing calls this directly
no outgoing calls
no test coverage detected