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

Method ConsumeResult

agent/memory_extraction.go:121–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119func (c *ExtractionController) incrementalFabricMessages(state *AgentState) ([]map[string]any, []string, int, int, string, string) {
120 sessionID := firstNonEmptyString(c.SourceSessionID, state.MemorySessionID)
121 if sessionID == "" {
122 sessionID = "runtime-" + stableFabricTextID(c.Config.ProjectRoot()) + "-" +
123 firstNonEmptyString(c.SourceAgentID, "main")
124 }
125 consumerID := "memory-fabric-ingest:" + firstNonEmptyString(c.SourceAgentID, "main")
126 start := state.MemoryExtractionCursor
127 if start < 0 {
128 start = 0
129 }
130 if start >= len(state.Messages) {
131 return nil, nil, start, start - 1, sessionID, consumerID
132 }
133

Calls

no outgoing calls