GetRecentDailyNotes returns the last N days of notes.
(days int)
| 88 | |
| 89 | // GetRecentDailyNotes returns the last N days of notes. |
| 90 | func (ms *MemoryStore) GetRecentDailyNotes(days int) []DailyNote { |
| 91 | managerNotes := ms.manager.GetRecentDailyNotes(days) |
| 92 | notes := make([]DailyNote, len(managerNotes)) |
| 93 | for i, n := range managerNotes { |
| 94 | notes[i] = DailyNote{ |
| 95 | Date: n.Date, |
| 96 | Path: n.Path, |
| 97 | Content: n.Content, |
| 98 | } |
| 99 | } |
| 100 | return notes |
| 101 | } |
| 102 | |
| 103 | // GetMemoryContext builds the memory section for the system prompt. |
| 104 | // Uses smart retrieval when no hints are provided. |
no outgoing calls