generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructs


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

Interface: ContextualGroundingFilter

Interface to define a Contextual Grounding Filter.

Properties

action?

readonly optional action: GuardrailAction

The action to take when contextual grounding is detected.


enabled?

readonly optional enabled: boolean

Whether the contextual grounding filter is enabled.


threshold

readonly threshold: number

The threshold for the contextual grounding filter.


type

readonly type: ContextualGroundingFilterType

The type of contextual grounding filter.