ChatReducerCompactionStrategy(IChatReducer, CompactionTrigger) Constructor

Definition

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.

Applies to