Skip to content

Function: createMemoryBuilder()

createMemoryBuilder(config, servicePrincipalPool): MemoryBuilder

Construct a per-agent Memory factory bound to the supplied service-principal pool (see createServicePrincipalPool). Caches the shared PgVector singleton (built on first need) so each agent build is O(1) after the first.

MastraPluginConfig

Pool

MemoryBuilder