pub type InjectionClassifierLoader = Box<dyn Fn(&str) -> Option<Box<dyn InjectionClassifier>> + Send + Sync>;Expand description
A lazy loader that materializes a neural classifier from a model selector
(a harn guard catalog name or model directory). Installed by a host built
with the guard inference backend; harn-vm calls it the first time a
local-ml policy actually scores untrusted content, so the (heavy) model is
loaded on demand, never at startup.
Aliased Typeยง
pub struct InjectionClassifierLoader(/* private fields */);