pub enum InvalidationVerdict {
Keep {
reason: String,
},
Invalidate {
reason: String,
},
Update {
merged_content: String,
reason: String,
},
}Expand description
Result of asking the LLM whether a new memory invalidates an existing one.
Variants§
Keep
Both memories are valid and describe different facts.
Invalidate
The new memory makes the old one no longer true.
Update
The old memory should be updated with new information.
Trait Implementations§
Source§impl Clone for InvalidationVerdict
impl Clone for InvalidationVerdict
Source§fn clone(&self) -> InvalidationVerdict
fn clone(&self) -> InvalidationVerdict
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InvalidationVerdict
impl Debug for InvalidationVerdict
Source§impl<'de> Deserialize<'de> for InvalidationVerdict
impl<'de> Deserialize<'de> for InvalidationVerdict
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 Eq for InvalidationVerdict
Source§impl PartialEq for InvalidationVerdict
impl PartialEq for InvalidationVerdict
Source§impl Serialize for InvalidationVerdict
impl Serialize for InvalidationVerdict
impl StructuralPartialEq for InvalidationVerdict
Auto Trait Implementations§
impl Freeze for InvalidationVerdict
impl RefUnwindSafe for InvalidationVerdict
impl Send for InvalidationVerdict
impl Sync for InvalidationVerdict
impl Unpin for InvalidationVerdict
impl UnsafeUnpin for InvalidationVerdict
impl UnwindSafe for InvalidationVerdict
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