Packages
@anvia/memory-drizzle: Overview
Drizzle-backed durable session memory store for Anvia agents.
What it is
@anvia/memory-drizzle stores Anvia agent session memory through a Drizzle database instance.
The package exports the required Postgres Drizzle table definitions, so users can add Anvia memory tables to their Drizzle schema instead of copying table shapes by hand.
Where it fits
The package implements core’s MemoryStore interface. Core controls the save policy, while the Drizzle 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 drizzleMemorySchema, agentMemorySessions, agentMemoryMessages, agentMemoryErrors, createDrizzleMemoryStore, DrizzleMemoryStore, and createDrizzleMemoryScopeKey.
