Skip to main content

create_memory_with_storage_and_routes

Function create_memory_with_storage_and_routes 

pub fn create_memory_with_storage_and_routes(
    config: &MemoryConfig,
    embedding_routes: &[EmbeddingRouteConfig],
    active_storage: ActiveStorage<'_>,
    workspace_dir: &Path,
    api_key: Option<&str>,
    providers: Option<&ModelProviders>,
) -> Result<Box<dyn Memory>>