MCPcopy
hub / github.com/sipeed/picoclaw / legacyContextManager

Struct legacyContextManager

pkg/agent/context_legacy.go:18–21  ·  view source on GitHub ↗

legacyContextManager wraps the existing summarization/compression logic as a ContextManager implementation. It is the default when no other ContextManager is configured.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected