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

Function FilterVirtualMessages

agent/normalize.go:61–70  ·  view source on GitHub ↗
(messages []map[string]any)

Source from the content-addressed store, hash-verified

59}
60
61func FilterVirtualMessages(messages []map[string]any) []map[string]any {
62 out := make([]map[string]any, 0, len(messages))
63 for _, msg := range messages {
64 if isTruthy(msg["virtual"]) || isTruthy(msg["isVirtual"]) {
65 continue
66 }
67 out = append(out, msg)
68 }
69 return out
70}
71
72func BuildErrorBlockMap(recentErrors []string) map[string][]string {
73 out := map[string][]string{}

Callers 1

NormalizeMessagesFunction · 0.85

Calls 1

isTruthyFunction · 0.85

Tested by

no test coverage detected