@cdklabs/generative-ai-cdk-constructs
@cdklabs/generative-ai-cdk-constructs / bedrock / WordFilter
Interface to define a Word Filter.
readonlyoptionalinputAction:GuardrailAction
The action to take when a word is detected in the input.
readonlyoptionalinputEnabled:boolean
Whether the word filter is enabled for input.
readonlyoptionaloutputAction:GuardrailAction
The action to take when a word is detected in the output.
readonlyoptionaloutputEnabled:boolean
Whether the word filter is enabled for output.
readonlytext:string
The text to filter.