Module Values.AutomatedReasoningPolicyTestCaseSource

Represents a test for validating an Automated Reasoning policy. tests contain sample inputs and expected outcomes to verify policy behavior.

Sourcetype nonrec t = {
  1. testCaseId : AutomatedReasoningPolicyTestCaseId.t option;
    (*

    The unique identifier of the test.

    *)
  2. guardContent : AutomatedReasoningPolicyTestGuardContent.t option;
    (*

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

    *)
  3. queryContent : AutomatedReasoningPolicyTestQueryContent.t option;
    (*

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

    *)
  4. expectedAggregatedFindingsResult : AutomatedReasoningCheckResult.t option;
    (*

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

    *)
  5. createdAt : Timestamp.t option;
    (*

    The timestamp when the test was created.

    *)
  6. updatedAt : Timestamp.t option;
    (*

    The timestamp when the test was last updated.

    *)
  7. confidenceThreshold : AutomatedReasoningCheckTranslationConfidence.t option;
    (*

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

    *)
}
Sourceval make : ?testCaseId:??? -> ?guardContent:??? -> ?queryContent:??? -> ?expectedAggregatedFindingsResult:??? -> ?createdAt:??? -> ?updatedAt:??? -> ?confidenceThreshold:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Double of AutomatedReasoningCheckTranslationConfidence.t | `Enum of string | `String of AutomatedReasoningPolicyTestCaseId.t | `Timestamp of Timestamp.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t