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

Method BuildMessages

agent/loop.go:1016–1025  ·  view source on GitHub ↗
(state *AgentState)

Source from the content-addressed store, hash-verified

1014 if encoded, err := json.Marshal(slot.TC.Input); err == nil {
1015 parts = append(parts, string(encoded))
1016 }
1017 }
1018 }
1019 parts = append(parts, strings.TrimSpace(stringFromAny(result["content"])))
1020 }
1021 query := strings.TrimSpace(strings.Join(parts, "\n"))
1022 runes := []rune(query)
1023 if len(runes) > 4000 {
1024 query = string(runes[:4000])
1025 }
1026 return query
1027}
1028

Calls 5

applyRollingCacheMethod · 0.95
ProjectCollapsedViewFunction · 0.92
RepairOrphanToolsFunction · 0.85
NormalizeMessagesFunction · 0.85
StripMessageMetadataFunction · 0.85