Admin Storage
The admin package persists entity blueprints to aStorageDriver, ensuring they survive server restarts. Any storage backend supported by @agentium/core works.
Storage Backends
- In-Memory (Dev)
- SQLite
- PostgreSQL
- MongoDB
How It Works
The admin layer uses four namespaces to organize data:
Each record is stored as a plain JSON object keyed by the entity’s
name (or instanceName for toolkit configs). No class instances or functions are persisted — only serializable configuration.
Hydration Flow
On server startup, callhydrate() to restore entities:
Sharing Storage
The admin storage can use the sameStorageDriver instance as your agents’ memory and sessions. Namespaces prevent collisions: