generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructs


@cdklabs/generative-ai-cdk-constructs / bedrock / ContentFilter

Interface: ContentFilter

Interface to declare a content filter.

Properties

inputStrength

readonly inputStrength: ContentFilterStrength

The strength of the content filter to apply to prompts / user input.


outputStrength

readonly outputStrength: ContentFilterStrength

The strength of the content filter to apply to model responses.


type

readonly type: ContentFilterType

The type of harmful category that the content filter is applied to