Class GuardrailUsage

    • Method Detail

      • topicPolicyUnits

        public final Integer topicPolicyUnits()

        The topic policy units processed by the guardrail.

        Returns:
        The topic policy units processed by the guardrail.
      • contentPolicyUnits

        public final Integer contentPolicyUnits()

        The content policy units processed by the guardrail.

        Returns:
        The content policy units processed by the guardrail.
      • wordPolicyUnits

        public final Integer wordPolicyUnits()

        The word policy units processed by the guardrail.

        Returns:
        The word policy units processed by the guardrail.
      • sensitiveInformationPolicyUnits

        public final Integer sensitiveInformationPolicyUnits()

        The sensitive information policy units processed by the guardrail.

        Returns:
        The sensitive information policy units processed by the guardrail.
      • sensitiveInformationPolicyFreeUnits

        public final Integer sensitiveInformationPolicyFreeUnits()

        The sensitive information policy free units processed by the guardrail.

        Returns:
        The sensitive information policy free units processed by the guardrail.
      • contextualGroundingPolicyUnits

        public final Integer contextualGroundingPolicyUnits()

        The contextual grounding policy units processed by the guardrail.

        Returns:
        The contextual grounding policy units processed by the guardrail.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)