(r SessionRecord)
| 148 | } |
| 149 | |
| 150 | func recordToEntry(r SessionRecord) Entry { |
| 151 | return Entry{ |
| 152 | Time: r.Date, |
| 153 | Kind: KindSessionSummary, |
| 154 | Content: fmt.Sprintf("[%s] %s", r.Path, r.Summary), |
| 155 | Tags: r.Tags, |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | // Preamble returns the last preambleSessionCount session summaries as a |
| 160 | // compact block ready to concatenate to the system prompt. Bounded size |