Expand description
Configurable input guardrails backed by llm-guard.
Per-route policy selection with fallback to a default policy.
Re-exports§
pub use engine::GuardEngine;pub use policy::GuardrailsConfig;
Modules§
- engine
- The guard engine: compiles one
llm-guardpipeline per policy and runs a request’s input text through the route’s selected policy. - policy
- Guardrails config: named policies parsed from
guardrails.toml. - scanners
- Name→scanner registry. Turns a
ScannerSpecinto one or morellm-guardscanners. A bundle alias (e.g.prompt_injection) yields several. There is no global registry inllm-guard, so this is ours.