pub enum SessionEntry {
Header {
version: u32,
id: String,
cwd: String,
created: String,
},
Message {
id: String,
parent_id: Option<String>,
message: AgentMessage,
},
ModelChange {
id: String,
model: String,
},
EffortChange {
id: String,
effort: Option<String>,
},
Compaction {
id: String,
summary: String,
first_kept_message: usize,
tokens_before: Option<u64>,
usage: Option<Usage>,
},
Todo {
id: String,
todos: Vec<TodoItem>,
},
Unknown,
}Variants§
Header
Message
Fields
§
parent_id: Option<String>Reserved for future tree/fork sessions; the kernel is linear today
and always records None.
§
message: AgentMessageModelChange
EffortChange
Compaction
A compaction boundary: summary stands in for every Message before
first_kept_message (an ordinal into the Message sequence).
Fields
Todo
The persisted checklist (the todo tool’s state): last write wins.
Written by the todo tool on every write so plan→todo survives
--resume//reload; read by the tool’s seed path and by /verify (D8).
Unknown
Trait Implementations§
Source§impl Clone for SessionEntry
impl Clone for SessionEntry
Source§impl Debug for SessionEntry
impl Debug for SessionEntry
Source§impl<'de> Deserialize<'de> for SessionEntry
impl<'de> Deserialize<'de> for SessionEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SessionEntry
impl PartialEq for SessionEntry
Source§impl Serialize for SessionEntry
impl Serialize for SessionEntry
impl StructuralPartialEq for SessionEntry
Auto Trait Implementations§
impl Freeze for SessionEntry
impl RefUnwindSafe for SessionEntry
impl Send for SessionEntry
impl Sync for SessionEntry
impl Unpin for SessionEntry
impl UnsafeUnpin for SessionEntry
impl UnwindSafe for SessionEntry
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.