Class GuardrailContextualGroundingFilter
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GuardrailContextualGroundingFilter.Builder,GuardrailContextualGroundingFilter>
The details for the guardrails contextual grounding filter.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionaction()The action performed by the guardrails contextual grounding filter.final StringThe action performed by the guardrails contextual grounding filter.builder()final Booleandetected()Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Doublescore()The score generated by contextual grounding filter.static Class<? extends GuardrailContextualGroundingFilter.Builder>final DoubleThe threshold used by contextual grounding filter to determine whether the content is grounded or not.final StringtoString()Returns a string representation of this object.type()The contextual grounding filter type.final StringThe contextual grounding filter type.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
type
The contextual grounding filter type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnGuardrailContextualGroundingFilterType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The contextual grounding filter type.
- See Also:
-
typeAsString
The contextual grounding filter type.
If the service returns an enum value that is not available in the current SDK version,
typewill returnGuardrailContextualGroundingFilterType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The contextual grounding filter type.
- See Also:
-
threshold
The threshold used by contextual grounding filter to determine whether the content is grounded or not.
- Returns:
- The threshold used by contextual grounding filter to determine whether the content is grounded or not.
-
score
The score generated by contextual grounding filter.
- Returns:
- The score generated by contextual grounding filter.
-
action
The action performed by the guardrails contextual grounding filter.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnGuardrailContextualGroundingPolicyAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action performed by the guardrails contextual grounding filter.
- See Also:
-
actionAsString
The action performed by the guardrails contextual grounding filter.
If the service returns an enum value that is not available in the current SDK version,
actionwill returnGuardrailContextualGroundingPolicyAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromactionAsString().- Returns:
- The action performed by the guardrails contextual grounding filter.
- See Also:
-
detected
Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.
- Returns:
- Indicates whether content that fails the contextual grounding evaluation (grounding or relevance score less than the corresponding threshold) was detected.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<GuardrailContextualGroundingFilter.Builder,GuardrailContextualGroundingFilter>
-
builder
-
serializableBuilderClass
public static Class<? extends GuardrailContextualGroundingFilter.Builder> serializableBuilderClass() -
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-