Skip to main content

create_memory_from_config

Function create_memory_from_config 

pub fn create_memory_from_config(
    config: &Config,
    api_key: Option<&str>,
) -> Result<Box<dyn Memory>, Error>
Expand description

Construct memory from the canonical loaded configuration.

Config-aware production paths should use this entrypoint so the selected storage alias, embedding route, and provider settings are applied together.