

# GuardrailContextualGroundingFilter
<a name="API_runtime_GuardrailContextualGroundingFilter"></a>

The details for the guardrails contextual grounding filter.

## Contents
<a name="API_runtime_GuardrailContextualGroundingFilter_Contents"></a>

 ** action **   <a name="bedrock-Type-runtime_GuardrailContextualGroundingFilter-action"></a>
The action performed by the guardrails contextual grounding filter.  
Type: String  
Valid Values: `BLOCKED | NONE`   
Required: Yes

 ** score **   <a name="bedrock-Type-runtime_GuardrailContextualGroundingFilter-score"></a>
The score generated by contextual grounding filter.  
Type: Double  
Valid Range: Minimum value of 0. Maximum value of 1.  
Required: Yes

 ** threshold **   <a name="bedrock-Type-runtime_GuardrailContextualGroundingFilter-threshold"></a>
The threshold used by contextual grounding filter to determine whether the content is grounded or not.  
Type: Double  
Valid Range: Minimum value of 0. Maximum value of 1.  
Required: Yes

 ** type **   <a name="bedrock-Type-runtime_GuardrailContextualGroundingFilter-type"></a>
The contextual grounding filter type.  
Type: String  
Valid Values: `GROUNDING | RELEVANCE`   
Required: Yes

 ** detected **   <a name="bedrock-Type-runtime_GuardrailContextualGroundingFilter-detected"></a>
Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.  
Type: Boolean  
Required: No

## See Also
<a name="API_runtime_GuardrailContextualGroundingFilter_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/bedrock-runtime-2023-09-30/GuardrailContextualGroundingFilter) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/bedrock-runtime-2023-09-30/GuardrailContextualGroundingFilter) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/bedrock-runtime-2023-09-30/GuardrailContextualGroundingFilter) 