Interface CompactionInput

interface CompactionInput {
    messages: ContextMessage[];
    maxContextTokens: number;
    currentTokens: number;
    summaryChain: SummaryChainNode[];
    emotionalContext?: EmotionalContext;
    recentTraces?: MemoryTrace[];
}

Properties

messages: ContextMessage[]

All messages in the conversation.

maxContextTokens: number

Maximum token budget for the entire context window.

currentTokens: number

Current total token count.

summaryChain: SummaryChainNode[]

Existing summary chain (for incremental compaction).

emotionalContext?: EmotionalContext

Current emotional context, if available.

recentTraces?: MemoryTrace[]

Recent memory traces for context (hybrid strategy).