ChatReducerCompactionStrategy(IChatReducer, 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 ChatReducerCompactionStrategy class.
public ChatReducerCompactionStrategy(Microsoft.Extensions.AI.IChatReducer chatReducer, Microsoft.Agents.AI.Compaction.CompactionTrigger trigger);
new Microsoft.Agents.AI.Compaction.ChatReducerCompactionStrategy : Microsoft.Extensions.AI.IChatReducer * Microsoft.Agents.AI.Compaction.CompactionTrigger -> Microsoft.Agents.AI.Compaction.ChatReducerCompactionStrategy
Public Sub New (chatReducer As IChatReducer, trigger As CompactionTrigger)
Parameters
- chatReducer
- IChatReducer
The IChatReducer that performs the message reduction.
- trigger
- CompactionTrigger
The CompactionTrigger that controls when compaction proceeds.