pub enum SessionEntry {
Message {
base: EntryBase,
message: AgentMessage,
extra: Map<String, Value>,
},
ModelChange {
base: EntryBase,
provider: String,
model_id: String,
extra: Map<String, Value>,
},
ThinkingLevelChange {
base: EntryBase,
thinking_level: ThinkingLevel,
extra: Map<String, Value>,
},
Usage {
base: EntryBase,
kind: String,
provider: String,
model: String,
usage: Usage,
note: Option<String>,
extra: Map<String, Value>,
},
Compaction {
base: EntryBase,
summary: String,
tokens_before: u64,
first_kept_entry_id: Option<String>,
retained_tail: Option<Vec<AgentMessage>>,
usage: Option<Usage>,
details: Option<Value>,
extra: Map<String, Value>,
},
BranchSummary {
base: EntryBase,
from_id: String,
summary: String,
usage: Option<Usage>,
details: Option<Value>,
extra: Map<String, Value>,
},
Custom {
base: EntryBase,
custom_type: String,
data: Option<Value>,
extra: Map<String, Value>,
},
CustomMessage {
base: EntryBase,
custom_type: String,
content: UserContent,
display: bool,
details: Option<Value>,
extra: Map<String, Value>,
},
Label {
base: EntryBase,
target_id: String,
label: Option<String>,
extra: Map<String, Value>,
},
SessionInfo {
base: EntryBase,
name: Option<String>,
extra: Map<String, Value>,
},
}Variants§
Message
ModelChange
ThinkingLevelChange
Usage
Fields
Compaction
Fields
§
retained_tail: Option<Vec<AgentMessage>>Post-compaction context checkpoint (newer format).
BranchSummary
Fields
Custom
Harness/extension state. Never part of LLM context.
CustomMessage
Injected message that does participate in LLM context.
Fields
§
content: UserContentLabel
SessionInfo
Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.