(segmentId, limit = 500)
| 30 | const piModel = deps.buildPiModel(llmConfig) |
| 31 | return { |
| 32 | loadMessages(segmentId, limit = 500) { |
| 33 | const data = getSegmentMessages(db, segmentId, limit) |
| 34 | if (!data) return null |
| 35 | return data.messages.map((m) => ({ senderName: m.senderName, content: m.content })) |
| 36 | }, |
| 37 | saveSummary(segmentId, summary) { |
| 38 | saveSegmentSummary(db, segmentId, summary) |
| 39 | }, |
nothing calls this directly
no test coverage detected