Interface AutomatedReasoningPolicyTestCase.Builder

  • Method Details

    • 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

      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

      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.
    • expectedAggregatedFindingsResult

      AutomatedReasoningPolicyTestCase.Builder expectedAggregatedFindingsResult(String expectedAggregatedFindingsResult)

      The expected result of the Automated Reasoning check for this test.

      Parameters:
      expectedAggregatedFindingsResult - The expected result of the Automated Reasoning check for this test.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • expectedAggregatedFindingsResult

      AutomatedReasoningPolicyTestCase.Builder expectedAggregatedFindingsResult(AutomatedReasoningCheckResult expectedAggregatedFindingsResult)

      The expected result of the Automated Reasoning check for this test.

      Parameters:
      expectedAggregatedFindingsResult - The expected result of the Automated Reasoning check for this test.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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.