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:
For how to save and declare artifacts during agent execution, see Streaming API.