Skip to main content

screen_input

Function screen_input 

Source
pub fn screen_input(
    text: &str,
    cfg: &GuardrailsConfig,
) -> Option<GuardrailFinding>
Expand description

Screen chat input. Returns the first finding (injection takes precedence over PII), or None when screening is disabled or the input is clean.