OpenPrompts
← Back to catalog
NVIDIAGuardrailsSafety & Moderation

Topic Safety (NeMo Guardrail)

flow topic safety check input $model $response = await TopicSafetyCheckInputAction(model_name=$model) global $on_topic $on_topic = $response["on_topic

flow topic safety check input $model
  $response = await TopicSafetyCheckInputAction(model_name=$model)

  global $on_topic
  $on_topic = $response["on_topic"]

  if not $on_topic
    if $system.config.enable_rails_exceptions
      send TopicSafetyCheckInputException(message="Input not allowed. The input was blocked by the 'topic safety check input $model='{$model}'' flow.")
    else
      bot refuse to respond
    abort
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-04-13
#guardrail#nemo#rails#colang