Skip to main content

create_memory

Function create_memory 

Source
pub fn create_memory(
    config: &MemoryConfig,
    workspace_dir: &Path,
    api_key: Option<&str>,
) -> Result<Box<dyn Memory>>
Expand description

Factory: create the right memory backend from config.

Persistent memory in Construct is handled exclusively by Kumiho MCP (injected at the agent level). The runtime Memory trait binding is therefore always NoneMemory — in-session, non-persistent. Any non-Kumiho backend name is rejected with an error directing users to Kumiho.