Module Values.GuardrailPiiEntitySource

The PII entity configured for the guardrail.

Sourcetype nonrec t = {
  1. type_ : GuardrailPiiEntityType.t option;
    (*

    The type of PII entity. For example, Social Security Number.

    *)
  2. action : GuardrailSensitiveInformationAction.t option;
    (*

    The configured guardrail action when PII entity is detected.

    *)
  3. inputAction : GuardrailSensitiveInformationAction.t option;
    (*

    The action to take when harmful content is detected in the input. Supported values include: BLOCK – Block the content and replace it with blocked messaging. ANONYMIZE – Mask the content and replace it with identifier tags. NONE – Take no action but return detection information in the trace response.

    *)
  4. outputAction : GuardrailSensitiveInformationAction.t option;
    (*

    The action to take when harmful content is detected in the output. Supported values include: BLOCK – Block the content and replace it with blocked messaging. ANONYMIZE – Mask the content and replace it with identifier tags. NONE – Take no action but return detection information in the trace response.

    *)
  5. inputEnabled : Boolean.t option;
    (*

    Indicates whether guardrail evaluation is enabled on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.

    *)
  6. outputEnabled : Boolean.t option;
    (*

    Indicates whether guardrail evaluation is enabled on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.

    *)
}
Sourceval make : ?type_:??? -> ?action:??? -> ?inputAction:??? -> ?outputAction:??? -> ?inputEnabled:??? -> ?outputEnabled:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of Boolean.t | `Enum of string ]) 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