MCPcopy Create free account
hub / github.com/compozy/agh / nativeMemoryDescription

Function nativeMemoryDescription

internal/daemon/native_tools.go:5653–5660  ·  view source on GitHub ↗
(content string)

Source from the content-addressed store, hash-verified

5651}
5652
5653func nativeMemoryDescription(content string) string {
5654 firstLine := strings.TrimSpace(strings.Split(strings.TrimSpace(content), "\n")[0])
5655 const maxNativeMemoryDescriptionLength = 160
5656 if len(firstLine) <= maxNativeMemoryDescriptionLength {
5657 return firstLine
5658 }
5659 return strings.TrimSpace(firstLine[:maxNativeMemoryDescriptionLength]) + "..."
5660}
5661
5662func nativeMemoryTaggedContent(content string, tags []string) string {
5663 body := strings.TrimSpace(content)

Callers 2

memoryNoteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected