Skip to content

GuardrailRegexFilter

Structure Class

GuardrailRegexFilter dataclass

Bases: _SerdeShape

A Regex filter configured in a guardrail.

Attributes

action instance-attribute
action: str

The region filter action.

detected class-attribute instance-attribute
detected: bool | None = ...

Indicates whether custom regex entities that breach the guardrail configuration are detected.

match class-attribute instance-attribute
match: str | None = ...

The regesx filter match.

name class-attribute instance-attribute
name: str | None = ...

The regex filter name.

regex class-attribute instance-attribute
regex: str | None = ...

The regex query.