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

Function truncateExtractionRunes

agent/memory_extraction.go:320–326  ·  view source on GitHub ↗
(text string, limit int)

Source from the content-addressed store, hash-verified

318 for index, message := range payload.Messages {
319 if index >= len(payload.MessageIDs) {
320 break
321 }
322 role := strings.ToLower(strings.TrimSpace(stringFromAny(message["role"])))
323 if role != "user" && role != "assistant" {
324 continue
325 }
326 content := strings.TrimSpace(visibleMessageText(message["content"]))
327 if content == "" {
328 continue
329 }

Callers 2

FormatExtractionResultFunction · 0.85
formatExtractionBlocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected