Skip to main content

Module engine

Module engine 

Source
Expand description

The guard engine: compiles one llm-guard pipeline per policy and runs a request’s input text through the route’s selected policy.

Structs§

GuardEngine
Holds compiled pipelines keyed by policy name. Construct once at startup and share behind an Arc. An empty engine is a no-op (guard returns Ok).