Parameters
See plugin common configurations for configuration options available to all plugins.
match_all_roles
boolean
default:
false
If true, validate messages from all roles. If false, validate the message from
user
role only.match_all_conversation_history
boolean
default:
false
If true, concatenate and check all messages in the conversation history. If false, only check the content of the last message.
allow_patterns
array[string]
An array of RegEx patterns that messages should match. When configured, messages must match at least one pattern to be considered valid.
deny_patterns
array[string]
An array of RegEx patterns that messages should not match. If messages match any of the patterns, the request should be rejected.
If both
allow_patterns
anddeny_patterns
are configured, the plugin first ensures that at least oneallow_patterns
is matched.