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

Function BuildErrorBlockMap

agent/normalize.go:72–82  ·  view source on GitHub ↗
(recentErrors []string)

Source from the content-addressed store, hash-verified

70}
71
72func BuildErrorBlockMap(recentErrors []string) map[string][]string {
73 out := map[string][]string{}
74 for _, err := range recentErrors {
75 for keyword, blockTypes := range errorBlockPatterns {
76 if strings.Contains(err, keyword) {
77 out[keyword] = append([]string{}, blockTypes...)
78 }
79 }
80 }
81 return out
82}
83
84func StripInternalElements(messages []map[string]any) []map[string]any {
85 return StripInternalElementsWithErrors(messages, nil)

Callers 1

NormalizeMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected