pub fn analyze_suffix(
text: &str,
suffix_window_chars: usize,
perplexity_threshold: f64,
symbol_ratio_threshold: f64,
min_prompt_chars: usize,
) -> PerplexityResultExpand description
Analyze the suffix window of a prompt for adversarial content.
text: full prompt textsuffix_window_chars: number of trailing characters to analyzeperplexity_threshold: perplexity score above which to flagsymbol_ratio_threshold: symbol ratio above which to flagmin_prompt_chars: minimum prompt length to apply the filter