mirror of
https://github.com/slhaf/Partner.git
synced 2026-10-25 02:43:49 +00:00
refactor(memory): update end index of memory slice
This commit is contained in:
+1
-1
@@ -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