@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / WordFilter
Interface to define a Word Filter.
readonly
optional
inputAction:GuardrailAction
The action to take when a word is detected in the input.
readonly
optional
inputEnabled:boolean
Whether the word filter is enabled for input.
readonly
optional
outputAction:GuardrailAction
The action to take when a word is detected in the output.
readonly
optional
outputEnabled:boolean
Whether the word filter is enabled for output.
readonly
text:string
The text to filter.