flow autoalign check input
$input_result = await AutoalignInputApiAction(show_autoalign_message=True)
if $input_result["guardrails_triggered"]
global $autoalign_input_response
$autoalign_input_response = $input_result['combined_response']
if $system.config.enable_rails_exceptions
send AutoAlignInputRailException(message="AutoAlign input guardrail triggered")
else
bot refuse to respond
abort
else if $input_result["pii"] and $input_result["pii"]["guarded"]:
global $user_message
$user_message = $input_result["pii"]["response"]
flow autoalign check output
$output_result = await AutoalignOutputApiAction(show_autoalign_message=True)
if $output_result["guardrails_triggered"]
if $system.config.enable_rails_exceptions
send AutoAlignOutputRailException(message="AutoAlign guardrail triggered")
else
bot refuse to respond
abort
else
global $pii_message_output
$pii_message_output = $output_result["pii"]["response"]
if $output_result["pii"]["guarded"]
global $bot_message
$bot_message = $pii_message_output
flow autoalign groundedness output
if $check_facts == True
global $check_facts
$check_facts = False
global $threshold
$threshold = 0.5
$output_result = await AutoalignFactcheckOutputApiAction(factcheck_threshold=$threshold, show_autoalign_message=True)
bot provide response
flow autoalign factcheck output
$threshold = 0.5
$output_result = await autoalign_factcheck_output_api(factcheck_threshold=$threshold, show_autoalign_message=True)
← Back to catalog
Autoalign (NeMo Guardrail)
flow autoalign check input $input_result = await AutoalignInputApiAction(show_autoalign_message=True) if $input_result["guardrails_triggered"] global
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-02-22
#guardrail#nemo#rails#colang