Skip to main content

Interface: ContextMessage

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

Properties​

compacted?​

optional compacted: boolean

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

Set to true after this message has been compacted into a summary.


content​

content: string

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


role​

role: "user" | "tool" | "system" | "assistant"

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


timestamp​

timestamp: number

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


tokenEstimate​

tokenEstimate: number

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


turnIndex​

turnIndex: number

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

The turn: each user message opens the next one, from 1; earlier messages are turn 0.