pub enum EntryKind {
Delivered {
sender: String,
epitaph: Option<Epitaph>,
body: String,
},
Model {
model_id: String,
blocks: Vec<Block>,
usage: Usage,
},
ToolResult {
tool_use_id: String,
content: String,
is_error: bool,
},
Streaming {
thinking: String,
text: String,
},
Compacted {
first: usize,
last: usize,
summary: String,
},
Raw,
}Expand description
The origin classification of a transcript entry (see the module table).
Variants§
Delivered
.md — a delivered message; sender is the filename origin token
and body is the deposit’s content with its --- frontmatter
envelope stripped (see [classify]). epitaph is Some exactly on a
result deposit — a child’s terminal, which asserts how it ended and
may say nothing else (ARCH §2.6).
Model
NNN-<model>.json — model output as canonical content blocks, with
the provider’s committed usage counters when the bytes carry them.
ToolResult
NNN-tool.json — a tool_result.
Streaming
The live streaming tail folded from the open response.json — the
model’s reasoning and its answer so far, held apart because they are two
things being said and each becomes its own row, exactly as the
Block::Thinking/Block::Text pair of the committed entry that
supersedes them will (§7.2 the thinking ruling). Either may be empty:
a model that has only thought so far, or one that answered without
reasoning, and an empty half is simply no row.
Compacted
A span of entries litany’s compactor deleted — a hole in the NNN
counter, standing where they were. first and last are the missing
counter values, inclusive, and are the only thing this entry asserts.
summary is the conversation’s whole compaction record, which rides
the earliest gap and is empty on every other one and wherever the
compactor left none — the pairing is unavailable on disk and is not
guessed ([compaction]). Virtual: no file backs it, exactly as none
backs Streaming.
Raw
Unparseable filename or unparseable bytes — surfaced verbatim rather than dropped (§15 Y12: “surface them in a Raw bucket”).
Trait Implementations§
impl Eq for EntryKind
impl StructuralPartialEq for EntryKind
Auto Trait Implementations§
impl Freeze for EntryKind
impl RefUnwindSafe for EntryKind
impl Send for EntryKind
impl Sync for EntryKind
impl Unpin for EntryKind
impl UnsafeUnpin for EntryKind
impl UnwindSafe for EntryKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.