flow patronus lynx check output hallucination
$patronus_lynx_response = await PatronusLynxCheckOutputHallucinationAction
global $hallucination
$hallucination = $patronus_lynx_response["hallucination"]
# The Reasoning trace is currently unused, but can be used to modify the bot output
global $reasoning
$reasoning = $patronus_lynx_response["reasoning"]
if $hallucination
if $system.config.enable_rails_exceptions
send PatronusAIHallucinationException(message="Hallucination detected. The previous answer may not be accurate")
else
bot inform answer unknown
abort
flow patronus api check output
$patronus_response = await PatronusApiCheckOutputAction
global $evaluation_passed
$evaluation_passed = $patronus_response["pass"]
if not $evaluation_passed
bot inform answer unknown
← Back to catalog
Patronusai (NeMo Guardrail)
flow patronus lynx check output hallucination $patronus_lynx_response = await PatronusLynxCheckOutputHallucinationAction global $hallucination $halluc
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
- 2026-03-10
#guardrail#nemo#rails#colang