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

Method shouldTriggerAgentMemoryRecall

agent/subagent.go:573–586  ·  view source on GitHub ↗
(toolObservations []map[string]any)

Source from the content-addressed store, hash-verified

571}
572
573func prepareSubagentAPIMessages(messages []map[string]any) []map[string]any {
574 cleaned := make([]map[string]any, 0, len(messages))
575 for _, msg := range messages {
576 cp := map[string]any{}
577 for key, value := range msg {
578 if key == "metadata" || key == "isMeta" {
579 continue
580 }
581 cp[key] = value
582 }
583 cleaned = append(cleaned, cp)
584 }
585 return cleaned
586}

Callers 1

Calls 1

Tested by

no test coverage detected