core: add experimental turn summarization to compact conversation history

This commit is contained in:
Dax Raad
2025-10-22 18:33:33 -04:00
parent f194a784b0
commit 1f80de2fa6
6 changed files with 69 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ export namespace SessionCompaction {
draft.time.compacting = undefined
})
})
const toSummarize = await Session.messages(input.sessionID).then(MessageV2.filterSummarized)
const toSummarize = await Session.messages(input.sessionID).then(MessageV2.filterCompacted)
const model = await Provider.getModel(input.providerID, input.modelID)
const system = [
...SystemPrompt.summarize(model.providerID),