Expand description
systemprompt-runtime — application runtime services.
This crate hosts AppContext, the lifecycle AppContextBuilder,
the inventory-driven module API and well-known route registries,
per-module installation helpers, startup validation, and the typed
RuntimeError / RuntimeResult error boundary used by all of
the above.
Public APIs return RuntimeResult<T>. RuntimeError composes
upstream typed errors (ConfigError, RepositoryError,
FilesError, UserError, LoaderError, AnalyticsError,
ProfileBootstrapError, PathError) via #[from] and absorbs
stringifies still-anyhow upstream calls into RuntimeError::Internal.
§Feature flags
| Feature | Effect |
|---|---|
| (default) | Core context, builder, registries, validation |
geolocation | Enables MaxMind GeoIP2 loading via maxminddb and pulls in systemprompt-analytics/geolocation |
Macros§
Structs§
- ApiConfig
- AppContext
- AppContext
Builder - AppContext
Parts - Database
Context - Files
Config Validator - Module
- Module
ApiRegistration - Module
ApiRegistry - Module
Permission - Module
Schema - Module
Seed - Modules
- Startup
Validator - Well
Known Metadata - Well
Known Route
Enums§
Traits§
Functions§
- create_
request_ span - display_
validation_ report - display_
validation_ warnings - get_
wellknown_ metadata - install_
module - install_
module_ with_ db - validate_
database_ path - validate_
system