MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / ShouldExtract

Method ShouldExtract

agent/memory_extraction.go:73–85  ·  view source on GitHub ↗
(state *AgentState)

Source from the content-addressed store, hash-verified

71
72func (c *ExtractionController) Schedule(_ context.Context, state *AgentState, _ string) bool {
73 if !c.ShouldExtract(state) {
74 return false
75 }
76 payload := c.incrementalFabricContext(state)
77 if len(payload.Messages) == 0 {
78 c.advanceFabricCursor(payload)
79 return false
80 }
81
82 c.mu.Lock()
83 if c.currentRunning {
84 c.pendingContext = payload
85 c.mu.Unlock()
86 return false
87 }
88 runCtx, cancel := context.WithCancel(context.Background())

Calls

no outgoing calls