Interface AutomatedReasoningPolicyTestCase.Builder

    • Method Detail

      • testCaseId

        AutomatedReasoningPolicyTestCase.Builder testCaseId​(String testCaseId)

        The unique identifier of the test.

        Parameters:
        testCaseId - The unique identifier of the test.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • guardContent

        AutomatedReasoningPolicyTestCase.Builder guardContent​(String guardContent)

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

        Parameters:
        guardContent - The output content to be validated by the policy, typically representing a foundation model response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • queryContent

        AutomatedReasoningPolicyTestCase.Builder queryContent​(String queryContent)

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

        Parameters:
        queryContent - The input query or prompt that generated the content. This provides context for the validation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createdAt

        AutomatedReasoningPolicyTestCase.Builder createdAt​(Instant createdAt)

        The timestamp when the test was created.

        Parameters:
        createdAt - The timestamp when the test was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • updatedAt

        AutomatedReasoningPolicyTestCase.Builder updatedAt​(Instant updatedAt)

        The timestamp when the test was last updated.

        Parameters:
        updatedAt - The timestamp when the test was last updated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • confidenceThreshold

        AutomatedReasoningPolicyTestCase.Builder confidenceThreshold​(Double confidenceThreshold)

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

        Parameters:
        confidenceThreshold - The minimum confidence level for logic validation. Content meeting this threshold is considered high-confidence and can be validated.
        Returns:
        Returns a reference to this object so that method calls can be chained together.