Skip to main content

Interface: CompactionInput

Defined in: packages/agentos/src/cognition/memory/pipeline/context/types.ts:129

Properties​

currentTokens​

currentTokens: number

Defined in: packages/agentos/src/cognition/memory/pipeline/context/types.ts:135

Current total token count.


emotionalContext?​

optional emotionalContext: EmotionalContext

Defined in: packages/agentos/src/cognition/memory/pipeline/context/types.ts:139

Current emotional context, if available.


maxContextTokens​

maxContextTokens: number

Defined in: packages/agentos/src/cognition/memory/pipeline/context/types.ts:133

Maximum token budget for the entire context window.


messages​

messages: ContextMessage[]

Defined in: packages/agentos/src/cognition/memory/pipeline/context/types.ts:131

All messages in the conversation.


recentTraces?​

optional recentTraces: MemoryTrace[]

Defined in: packages/agentos/src/cognition/memory/pipeline/context/types.ts:141

Recent memory traces for context (hybrid strategy).


summaryChain​

summaryChain: SummaryChainNode[]

Defined in: packages/agentos/src/cognition/memory/pipeline/context/types.ts:137

Existing summary chain (for incremental compaction).