(rawType string, seed string)
| 5626 | } |
| 5627 | |
| 5628 | func nativeMemoryFilename(rawType string, seed string) string { |
| 5629 | prefix := string(memcontract.Type(strings.TrimSpace(rawType)).Normalize()) |
| 5630 | if prefix == "" { |
| 5631 | prefix = string(HarnessPromptSectionMemory) |
| 5632 | } |
| 5633 | return prefix + "_" + nativeMemorySlug(seed) + ".md" |
| 5634 | } |
| 5635 | |
| 5636 | func nativeMemoryAdHocFilename(rawSlug string, content string, now time.Time) string { |
| 5637 | slug := nativeMemorySlug(firstNonEmpty(rawSlug, content, nativeToolsNoteKey)) |
no test coverage detected