Class GuardrailWordPolicyConfigWordsConfig


  • public final class GuardrailWordPolicyConfigWordsConfig
    extends java.lang.Object
    • Method Detail

      • inputAction

        public java.util.Optional<java.lang.String> inputAction()
        Returns:
        Action to take when harmful content is detected in the input. Valid values: `BLOCK`, `NONE`.
      • inputEnabled

        public java.util.Optional<java.lang.Boolean> inputEnabled()
        Returns:
        Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation.
      • outputAction

        public java.util.Optional<java.lang.String> outputAction()
        Returns:
        Action to take when harmful content is detected in the output. Valid values: `BLOCK`, `NONE`.
      • outputEnabled

        public java.util.Optional<java.lang.Boolean> outputEnabled()
        Returns:
        Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation.
      • text

        public java.lang.String text()
        Returns:
        Custom word text.