nemoguardrails.library.language_detector.actions
nemoguardrails.library.language_detector.actions
Module Contents
Functions
Data
API
Return the typed language_detector rail config, if available.
async
Gate user messages by language, via an allowlist or a blocklist.
Blocked messages are refused in the user’s own language whenever a refusal
message is available, falling back to English. When language detection
fails, fail_open explicitly controls whether the message is allowed or
blocked; the unknown language is never reported as English.