GetEntries 获取指定章节的所有条目
(section MemorySection)
| 168 | |
| 169 | // GetEntries 获取指定章节的所有条目 |
| 170 | func (pm *ProjectMemory) GetEntries(section MemorySection) []*Entry { |
| 171 | if pm.Sections[section] == nil { |
| 172 | return []*Entry{} |
| 173 | } |
| 174 | return pm.Sections[section].Entries |
| 175 | } |
| 176 | |
| 177 | // GetSummary 获取摘要(用于注入 AI 上下文) |
| 178 | func (pm *ProjectMemory) GetSummary() string { |
no outgoing calls
no test coverage detected