mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(memory): update end index of memory slice
This commit is contained in:
@@ -152,7 +152,7 @@ public class MemoryUpdater extends AbstractAgentModule.Running<PartnerRunningFlo
|
||||
MemorySlice memorySlice = new MemorySlice();
|
||||
memorySlice.setId(UUID.randomUUID().toString());
|
||||
memorySlice.setStartIndex(0);
|
||||
memorySlice.setEndIndex(Math.max(chatMessages.size() - 1, 0));
|
||||
memorySlice.setEndIndex(chatMessages.size());
|
||||
memorySlice.setSummary(summarizeResult.getSummary());
|
||||
memorySlice.setTimestamp(now);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user