Skip to main content

load

Function load 

Source
pub async fn load(config: &MemoryConfig) -> Result<MemoryPrefix>
Expand description

Load all three memory tiers from disk, enforce the token budget, and return the assembled MemoryPrefix.

Missing files are not errors — they contribute None tiers.

§Errors

Returns MemoryError::Io if a tier file exists but cannot be read (permissions, etc.), or MemoryError::AutoMemorySeed if the auto-memory directory exists check / seed write fails.