pub enum MemoryContent {
Sensory(Vec<u8>),
Text(String),
Structured(Value),
Embedding(Vec<f32>),
MultiModal {
text: Option<String>,
embedding: Vec<f32>,
metadata: Value,
},
}Expand description
Memory content types
Variants§
Sensory(Vec<u8>)
Raw sensory data
Text(String)
Text-based memory
Structured(Value)
Structured data
Embedding(Vec<f32>)
Embedding vector
MultiModal
Multi-modal memory
Trait Implementations§
Source§impl Clone for MemoryContent
impl Clone for MemoryContent
Source§fn clone(&self) -> MemoryContent
fn clone(&self) -> MemoryContent
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 MemoryContent
impl Debug for MemoryContent
Source§impl<'de> Deserialize<'de> for MemoryContent
impl<'de> Deserialize<'de> for MemoryContent
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 MemoryContent
impl RefUnwindSafe for MemoryContent
impl Send for MemoryContent
impl Sync for MemoryContent
impl Unpin for MemoryContent
impl UnwindSafe for MemoryContent
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