Module Values.GuardrailAutomatedReasoningTranslationSource

Contains the logical translation of natural language input into formal logical statements, including premises, claims, and confidence scores.

Sourcetype nonrec t = {
  1. premises : GuardrailAutomatedReasoningStatementList.t option;
    (*

    The logical statements that serve as the foundation or assumptions for the claims.

    *)
  2. claims : GuardrailAutomatedReasoningStatementList.t option;
    (*

    The logical statements that are being validated against the premises and policy rules.

    *)
  3. untranslatedPremises : GuardrailAutomatedReasoningInputTextReferenceList.t option;
    (*

    References to portions of the original input text that correspond to the premises but could not be fully translated.

    *)
  4. untranslatedClaims : GuardrailAutomatedReasoningInputTextReferenceList.t option;
    (*

    References to portions of the original input text that correspond to the claims but could not be fully translated.

    *)
  5. confidence : GuardrailAutomatedReasoningTranslationConfidence.t option;
    (*

    A confidence score between 0 and 1 indicating how certain the system is about the logical translation.

    *)
}
Sourceval make : ?premises:??? -> ?claims:??? -> ?untranslatedPremises:??? -> ?untranslatedClaims:??? -> ?confidence:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Double of GuardrailAutomatedReasoningTranslationConfidence.t | `List of [> `Structure of (string * [> `String of GuardrailAutomatedReasoningStatementLogicContent.t ]) list ] list ]) 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