Skip to main content

ConfigReloader

Type Alias ConfigReloader 

Source
pub type ConfigReloader = Arc<dyn Fn() -> Result<(Payloads, LlmRegistry)> + Send + Sync>;
Expand description

Boot-injected config reloader (W4): Runtime::load lives in ocserve — the closure avoids a crate cycle; None in tests. Returns derived payloads AND a rebuilt LLM registry (H2 — auth/provider/default-model edits apply without restart). Callers go through watch::reconcile, never the raw fn.

Aliased Type§

pub struct ConfigReloader { /* private fields */ }