Class MemoryConsolidationResult
Represents the result of a memory consolidation operation performed by ConsolidateAsync(LM, CancellationToken).
public sealed class MemoryConsolidationResult
- Inheritance
-
MemoryConsolidationResult
- Inherited Members
Examples
Logging the impact of a periodic consolidation pass:
using LMKit.Agents.Memory;
MemoryConsolidationResult result = await memory.ConsolidateAsync(model);
Console.WriteLine($"Memory consolidation: {result.EntryCountBefore} -> {result.EntryCountAfter} entries " +
$"({result.ClustersMerged} clusters merged, " +
$"{result.EntriesRemoved} removed, " +
$"{result.EntriesCreated} new summaries written).");
Properties
- ClustersMerged
Gets the number of memory entry clusters that were identified and merged.
- EntriesCreated
Gets the total number of new consolidated entries that were stored.
- EntriesRemoved
Gets the total number of individual memory entries that were removed as part of the consolidation.
- EntryCountAfter
Gets the total number of memory entries after consolidation.
- EntryCountBefore
Gets the total number of memory entries before consolidation.