Skip to content

Bedrock Runtime  >  Structures  >  GuardrailContextualGroundingFilter

GuardrailContextualGroundingFilter

Structure Class

GuardrailContextualGroundingFilter dataclass

The details for the guardrails contextual grounding filter.

Attributes

action instance-attribute

The action performed by the guardrails contextual grounding filter.

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

Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.

score instance-attribute
score: float

The score generated by contextual grounding filter.

threshold instance-attribute
threshold: float

The threshold used by contextual grounding filter to determine whether the content is grounded or not.

type instance-attribute

The contextual grounding filter type.