CompactionGroupKind Enum

Definition

Identifies the kind of a CompactionMessageGroup.

public enum CompactionGroupKind
type CompactionGroupKind = 
Public Enum CompactionGroupKind
Inheritance
CompactionGroupKind

Fields

Name Value Description
System 0

A system message group containing one or more system messages.

User 1

A user message group containing a single user message.

AssistantText 2

An assistant message group containing a single assistant text response (no tool calls).

ToolCall 3

An atomic tool call group containing an assistant message with tool calls followed by the corresponding tool result messages.

Summary 4

A summary message group produced by a compaction strategy (e.g., SummarizationCompactionStrategy).

Remarks

Message groups are used to classify logically related messages that must be kept together during compaction operations. For example, an assistant message containing tool calls and its corresponding tool result messages form an atomic ToolCall group.

Applies to