Skip to content
1 min read · 136 words

Interface: WorkingMessage

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

The structural shape of a conversation message the working set carries. Only the fields the pass actually reads: id (for ephemeral/summary predicate matching and identity-stable tracing), content (measured, and — for messages with no content — treated as empty/attachments-only), and createdAt (for oldest-first shedding order).

Properties

PropertyTypeDescriptionDefined in
content?string | ContentLikeThe message's rendered content. Absent (attachment-only messages) measures as zero tokens.src/batteries/context/thrift/contracts.ts:110
createdAtMillisTimestampWhen this message was created; drives oldest-first shedding order.src/batteries/context/thrift/contracts.ts:112
idstringStable identifier, matched against keepThoughtIds-style id sets and the injected isEphemeralMessage/isSummaryMessage predicates.src/batteries/context/thrift/contracts.ts:108