CompactionStrategy(CompactionTrigger, CompactionTrigger) 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 CompactionStrategy class.
protected CompactionStrategy(Microsoft.Agents.AI.Compaction.CompactionTrigger trigger, Microsoft.Agents.AI.Compaction.CompactionTrigger? target = default);
new Microsoft.Agents.AI.Compaction.CompactionStrategy : Microsoft.Agents.AI.Compaction.CompactionTrigger * Microsoft.Agents.AI.Compaction.CompactionTrigger -> Microsoft.Agents.AI.Compaction.CompactionStrategy
Protected Sub New (trigger As CompactionTrigger, Optional target As CompactionTrigger = Nothing)
Parameters
- trigger
- CompactionTrigger
The CompactionTrigger that determines whether compaction should proceed.
- target
- CompactionTrigger
An optional target condition that controls when compaction stops. Strategies re-evaluate
this predicate after each incremental exclusion and stop when it returns true.
When null, defaults to the inverse of the trigger — compaction
stops as soon as the trigger condition would no longer fire.