Skip to main content

Interface: CompactionEntry

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

Properties​

compressionRatio​

compressionRatio: number

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

Compression ratio (inputTokens / outputTokens).


droppedContent​

droppedContent: string[]

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

Content fragments intentionally dropped (low importance).


durationMs​

durationMs: number

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

Duration of the compaction operation in ms.


emotionalContext?​

optional emotionalContext: EmotionalContext

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

Emotional context at time of compaction.


id​

id: string

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


inputTokens​

inputTokens: number

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

Token count of the raw messages before compaction.


observationNotes?​

optional observationNotes: ObservationNote[]

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

Observation notes extracted during compaction (hybrid strategy).


outputTokens​

outputTokens: number

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

Token count of the produced summary.


preservedEntities​

preservedEntities: string[]

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

Named entities preserved in the summary.


strategy​

strategy: CompactionStrategy

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

Strategy that produced this compaction.


summary​

summary: string

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

The summary text that replaced the raw messages.


timestamp​

timestamp: number

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


tracesCreated​

tracesCreated: string[]

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

Memory trace IDs created from this compaction.


turnRange​

turnRange: [number, number]

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

Inclusive turn range that was compacted.