Docs

Packages

@anvia/memory-postgres: Overview

Postgres-backed durable session memory store for Anvia agents.

What it is

@anvia/memory-postgres stores Anvia agent session memory directly in Postgres.

Use it when an application wants durable memory without an ORM adapter, or when the product already owns a Postgres connection pool.

Where it fits

The package implements core’s MemoryStore interface. Core controls the save policy, while the Postgres adapter owns scope keys, ordered message rows, JSONB message storage, and failed-run error records. Its read-only MemoryInspector lets Studio discover existing database conversations without copying them or changing the schema.

Public surface

The main exports are createPostgresMemoryStore, PostgresMemoryStore, createPostgresMemorySchemaSql, and createPostgresMemoryScopeKey.

Next pages