CompactionStrategy(CompactionTrigger, CompactionTrigger) Constructor

Definition

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.

Applies to