pub struct MemoriesConfig {
pub enabled: bool,
pub inject: InjectMode,
pub budget: usize,
pub filter: MemoriesFilter,
}Expand description
Memories configuration.
Controls the persistent learning system that allows Ralph to accumulate
wisdom across sessions. Memories are stored in .ralph/agent/memories.md.
When enabled, the memories skill is automatically injected to teach agents how to create and search memories (skill injection is implicit).
Example configuration:
memories:
enabled: true
inject: auto
budget: 2000Fields§
§enabled: boolWhether the memories feature is enabled.
When true, memories are injected and the skill is taught to the agent.
inject: InjectModeHow memories are injected into agent context.
budget: usizeMaximum tokens to inject (0 = unlimited).
When set, memories are truncated to fit within this budget.
filter: MemoriesFilterFilter configuration for memory injection.
Trait Implementations§
Source§impl Clone for MemoriesConfig
impl Clone for MemoriesConfig
Source§fn clone(&self) -> MemoriesConfig
fn clone(&self) -> MemoriesConfig
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 MemoriesConfig
impl Debug for MemoriesConfig
Source§impl Default for MemoriesConfig
impl Default for MemoriesConfig
Source§impl<'de> Deserialize<'de> for MemoriesConfig
impl<'de> Deserialize<'de> for MemoriesConfig
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 MemoriesConfig
impl RefUnwindSafe for MemoriesConfig
impl Send for MemoriesConfig
impl Sync for MemoriesConfig
impl Unpin for MemoriesConfig
impl UnsafeUnpin for MemoriesConfig
impl UnwindSafe for MemoriesConfig
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