Contains (string match) rule for guardrails
The contains
(string match) rule is used to check if input and output content contains specific words, phrases, or substrings.
contains
(specifies the rule type)pass
to ensure the specified strings are present, or fail
to flag when they are foundContains (string match) rule for guardrails
The contains
(string match) rule is used to check if input and output content contains specific words, phrases, or substrings.
contains
(specifies the rule type)pass
to ensure the specified strings are present, or fail
to flag when they are found