In-Memory Backend
- Default when no database connection is configured.
- Best for local development and stateless testing.
- Artifact data is lost on process restart.
Database Backend
- Used when a database connection is available.
- Best for production deployments where artifacts must survive restarts or be shared across instances.
- Requires
POSTGRES_URLto be configured.
Artifact Namespaces
Artifact scope is controlled by the filename prefix used when saving viactx.artifact_service:
| Prefix | Scope |
|---|---|
user:... | User-scoped — shared across all sessions for this user |
| (none) | Session-scoped — private to the current context |