CompactionStrategyKind
Namespace AgentPrism · Assembly
AgentPrism.Abstractions.dllThe kind of context compaction strategy that can be bound to an agent definition.
[JsonConverter(typeof(JsonStringEnumConverter<CompactionStrategyKind>))]public enum CompactionStrategyKindFields
Section titled “Fields”ContextWindow = 5
Evicts or truncates automatically against the model context window limit.
None = 0
No compaction. The default.
Pipeline = 6
Applies a fixed chain: ToolResult, then SlidingWindow, then Summarization.
SlidingWindow = 1
Drops the oldest turns while keeping their count above a lower bound.
Summarization = 4
Summarizes the excluded groups with a model.
ToolResult = 3
Shortens only the tool call and tool result groups.
Truncation = 2
Truncates the excluded groups down to a fixed lower bound.