# INPUT RAILS
flow regex check input
"""Check if the user input matches any forbidden regex patterns."""
$result = await DetectRegexMatchAction(source="input", text=$user_message)
if $result["is_match"]
bot refuse to respond
abort
# OUTPUT RAILS
flow regex check output
"""Check if the bot output matches any forbidden regex patterns."""
$result = await DetectRegexMatchAction(source="output", text=$bot_message)
if $result["is_match"]
bot refuse to respond
abort
# RETRIEVAL RAILS
flow regex check retrieval
"""Check if the relevant chunks from the knowledge base match any forbidden regex patterns.
"""
$result = await DetectRegexMatchAction(source="retrieval", text=$relevant_chunks)
if $result["is_match"]
$relevant_chunks = ""
← Back to catalog
Regex (NeMo Guardrail)
INPUT RAILS flow regex check input """Check if the user input matches any forbidden regex patterns.""" $result = await DetectRegexMatchAction(source="
Automated safety scan: no suspicious patterns found.
Heuristic text scan aligned to the OWASP Agentic Skills Top 10. How we scan
- Provider
- NVIDIA
- Origin
- Official
- Type
- Guardrails
- License
- Apache-2.0
- Language
- English
- Added
- 2025-09-08
#guardrail#nemo#rails#colang