Guardrails¶
Node: guardrails · Full type: @n8n/n8n-nodes-langchain.guardrails · Version: 2
Operations¶
Operations: classify, sanitize
Parameters¶
| Parameter | Type | Default | Details |
|---|---|---|---|
operation |
options | "classify" | classify, sanitize |
text |
string | "" | required |
guardrails |
collection | {} | keys: keywords, jailbreak, nsfw, pii, secretKeys, topicalAlignment, ... |
customizeSystemMessage |
boolean | false | |
systemMessage |
string | "Only respond with the json object and..." |
guardrails children:
| Parameter | Type | Default | Details |
|---|---|---|---|
keywords |
string | "" | |
jailbreak |
fixedCollection | {...} | groups: value |
nsfw |
fixedCollection | {...} | groups: value |
pii |
fixedCollection | {...} | groups: value |
secretKeys |
fixedCollection | {...} | groups: value |
topicalAlignment |
fixedCollection | {...} | groups: value |
urls |
fixedCollection | {...} | groups: value |
custom |
fixedCollection | {...} | groups: guardrail |
customRegex |
fixedCollection | {} | groups: regex |