Class AutomatedReasoningPolicyTestCase

    • Method Detail

      • testCaseId

        public final String testCaseId()

        The unique identifier of the test.

        Returns:
        The unique identifier of the test.
      • guardContent

        public final String guardContent()

        The output content to be validated by the policy, typically representing a foundation model response.

        Returns:
        The output content to be validated by the policy, typically representing a foundation model response.
      • queryContent

        public final String queryContent()

        The input query or prompt that generated the content. This provides context for the validation.

        Returns:
        The input query or prompt that generated the content. This provides context for the validation.
      • createdAt

        public final Instant createdAt()

        The timestamp when the test was created.

        Returns:
        The timestamp when the test was created.
      • updatedAt

        public final Instant updatedAt()

        The timestamp when the test was last updated.

        Returns:
        The timestamp when the test was last updated.
      • confidenceThreshold

        public final Double confidenceThreshold()

        The minimum confidence level for logic validation. Content meeting this threshold is considered high-confidence and can be validated.

        Returns:
        The minimum confidence level for logic validation. Content meeting this threshold is considered high-confidence and can be validated.
      • 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)