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

Struct trackingContextManager

pkg/agent/context_manager_test.go:711–719  ·  view source on GitHub ↗

trackingContextManager tracks call counts for each method.

Source from the content-addressed store, hash-verified

709
710// trackingContextManager tracks call counts for each method.
711type trackingContextManager struct {
712 assembleCalls atomic.Int64
713 compactCalls atomic.Int64
714 ingestCalls atomic.Int64
715 mu sync.Mutex
716 lastAssemble *AssembleRequest
717 lastCompact *CompactRequest
718 lastIngest *IngestRequest
719}
720
721func (m *trackingContextManager) Assemble(_ context.Context, req *AssembleRequest) (*AssembleResponse, error) {
722 m.assembleCalls.Add(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected