TruncationCompactionStrategy Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TruncationCompactionStrategy class.
public TruncationCompactionStrategy(Microsoft.Agents.AI.Compaction.CompactionTrigger trigger, int minimumPreservedGroups = 32, Microsoft.Agents.AI.Compaction.CompactionTrigger? target = default);
new Microsoft.Agents.AI.Compaction.TruncationCompactionStrategy : Microsoft.Agents.AI.Compaction.CompactionTrigger * int * Microsoft.Agents.AI.Compaction.CompactionTrigger -> Microsoft.Agents.AI.Compaction.TruncationCompactionStrategy
Public Sub New (trigger As CompactionTrigger, Optional minimumPreservedGroups As Integer = 32, Optional target As CompactionTrigger = Nothing)
Parameters
- trigger
- CompactionTrigger
The CompactionTrigger that controls when compaction proceeds.
- minimumPreservedGroups
- Int32
The minimum number of most-recent non-system message groups to preserve. This is a hard floor — compaction will not remove groups beyond this limit, regardless of the target condition.
- target
- CompactionTrigger
An optional target condition that controls when compaction stops. When null,
defaults to the inverse of the trigger — compaction stops as soon as the trigger would no longer fire.