pub enum ModifierDef {
Embeddable {
provider: String,
},
Summarizable {
style: SummaryStyle,
on_triggers: Vec<Trigger>,
},
Lockable {
mode: LockMode,
},
}Expand description
Memory modifier types for embeddable, summarizable, lockable.
pack syntax in memory definition:
memory artifacts {
modifiers: [
embeddable { provider: "openai" },
summarizable { style: brief, on: [scope_close] }
]
}Variants§
Embeddable
Embeddable modifier - enables vector embeddings
Summarizable
Summarizable modifier - enables auto-summarization
Lockable
Lockable modifier - enables distributed locking
Trait Implementations§
Source§impl Clone for ModifierDef
impl Clone for ModifierDef
Source§fn clone(&self) -> ModifierDef
fn clone(&self) -> ModifierDef
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 ModifierDef
impl Debug for ModifierDef
Source§impl<'de> Deserialize<'de> for ModifierDef
impl<'de> Deserialize<'de> for ModifierDef
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
Source§impl Display for ModifierDef
impl Display for ModifierDef
Source§impl PartialEq for ModifierDef
impl PartialEq for ModifierDef
Source§impl Serialize for ModifierDef
impl Serialize for ModifierDef
impl StructuralPartialEq for ModifierDef
Auto Trait Implementations§
impl Freeze for ModifierDef
impl RefUnwindSafe for ModifierDef
impl Send for ModifierDef
impl Sync for ModifierDef
impl Unpin for ModifierDef
impl UnwindSafe for ModifierDef
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