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

Function RecalledMemoryFilenames

memory/injection.go:81–98  ·  view source on GitHub ↗
(messages []map[string]any)

Source from the content-addressed store, hash-verified

79 if s, ok := value.(string); ok {
80 if s = strings.TrimSpace(s); s != "" {
81 result[s] = struct{}{}
82 }
83 }
84 }
85 continue
86 }
87 }
88 return result
89}
90
91func StripMemoryContextMessages(messages []map[string]any, source string) []map[string]any {
92 var kept []map[string]any
93 for _, message := range messages {
94 if !IsMemoryContextMessage(message) {
95 kept = append(kept, message)
96 continue
97 }
98 metadata, _ := message["metadata"].(map[string]any)
99 if source != "" && metadata["source"] != source {
100 kept = append(kept, message)
101 }

Calls 2

IsMemoryContextMessageFunction · 0.85
stringSliceFromAnyFunction · 0.70