pub struct StoredMessageState {
pub partition: MessagePartition,
pub role: String,
pub body: StoredMessageBody,
pub tool_calls: Vec<LogicalToolCall>,
pub tokens: u32,
}Expand description
One stored message, projected (§12.1, adjudication §5q-2).
This is the durable representation of the CanonicalMessageState concept (0.2.67): the concept is the L1 semantic authority for messages; this DTO is merely its current storage vehicle. The two are deliberately decoupled so a future distributed persistence is not locked to the checkpoint DTO’s shape.
This is the source the renderer reads, not the rendered result: no prompt assembly, no residency projection, no salience footer. A restore rebuilds the partitions from these and then renders exactly what an uninterrupted run would have rendered.
Fields§
§partition: MessagePartition§role: Stringsystem | user | assistant | tool.
body: StoredMessageBody§tool_calls: Vec<LogicalToolCall>The calls an assistant message asked for — the half of “tool association” that points forward.
tokens: u32The cached token count the partition counter was built from. Carried rather than recomputed so a restore reproduces the same budget arithmetic even if the tokenizer moved.
Trait Implementations§
Source§impl Clone for StoredMessageState
impl Clone for StoredMessageState
Source§fn clone(&self) -> StoredMessageState
fn clone(&self) -> StoredMessageState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more