pub struct SessionSnapshot {
pub meta: ConversationMeta,
pub history: Vec<HistoryEntry>,
pub archive: Option<String>,
}Expand description
Snapshot returned by Storage::load_session — meta +
working-context history, already replayed past the last compact
marker.
Fields§
§meta: ConversationMeta§history: Vec<HistoryEntry>§archive: Option<String>Name of the Archive-kind memory entry whose content represents
the compacted prefix of this session, if any. Callers that want
the full resumed context resolve this against memory and
prepend the entry’s content to history.
Auto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnsafeUnpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
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