pub enum FrameKind {
DemotedMessage,
CompactionSummary,
}Expand description
The type of entry produced by a memory lifecycle hook.
Backends pattern-match on this enum across crate boundaries (e.g. to
classify retrieved entries by origin), so the enum is not
#[non_exhaustive]. Any future variant addition is therefore a breaking
change and must bump the major version of this crate.
Variants§
DemotedMessage
A single user/assistant interaction evicted from the working set.
CompactionSummary
A rolled-up summary of multiple evicted interactions.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FrameKind
impl<'de> Deserialize<'de> for FrameKind
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
impl Copy for FrameKind
impl Eq for FrameKind
impl StructuralPartialEq for FrameKind
Auto Trait Implementations§
impl Freeze for FrameKind
impl RefUnwindSafe for FrameKind
impl Send for FrameKind
impl Sync for FrameKind
impl Unpin for FrameKind
impl UnsafeUnpin for FrameKind
impl UnwindSafe for FrameKind
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