Skip to content
1 min read · 109 words

Interface: WorkingMemory

Defined in: src/batteries/context/thrift/contracts.ts:119

The structural shape of a memory the working set carries. Only content (measured) and importance (sort key — low-importance memories shed first) are read.

Properties

PropertyTypeDescriptionDefined in
contentstring | ContentLikeThe memory's rendered content, measured toward the memories bucket's token weight.src/batteries/context/thrift/contracts.ts:121
importance?number[0, 1]-ish importance score; memories sort by this (descending) before the shed, so the lowest-importance memories are popped first. Missing/absent sorts as 0 (shed first).src/batteries/context/thrift/contracts.ts:124