pub struct MemoryDecision {
pub id: String,
pub text: String,
pub event: MemoryAction,
pub old_memory: Option<String>,
}Expand description
A single memory decision from the LLM’s response.
Fields§
§id: String§text: String§event: MemoryAction§old_memory: Option<String>Trait Implementations§
Source§impl Clone for MemoryDecision
impl Clone for MemoryDecision
Source§fn clone(&self) -> MemoryDecision
fn clone(&self) -> MemoryDecision
Returns a duplicate of the value. Read more
1.0.0 · 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 MemoryDecision
impl Debug for MemoryDecision
Source§impl<'de> Deserialize<'de> for MemoryDecision
impl<'de> Deserialize<'de> for MemoryDecision
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
Auto Trait Implementations§
impl Freeze for MemoryDecision
impl RefUnwindSafe for MemoryDecision
impl Send for MemoryDecision
impl Sync for MemoryDecision
impl Unpin for MemoryDecision
impl UnsafeUnpin for MemoryDecision
impl UnwindSafe for MemoryDecision
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