Values.GuardrailRegexConfigSourceThe regular expression to configure for the guardrail.
type nonrec t = {name : GuardrailRegexConfigNameString.t;The name of the regular expression to configure for the guardrail.
*)description : GuardrailRegexConfigDescriptionString.t option;The description of the regular expression to configure for the guardrail.
*)pattern : GuardrailRegexConfigPatternString.t;The regular expression pattern to configure for the guardrail.
*)action : GuardrailSensitiveInformationAction.t;The guardrail action to configure when matching regular expression is detected.
*)inputAction : GuardrailSensitiveInformationAction.t option;Specifies 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. NONE – Take no action but return detection information in the trace response.
*)outputAction : GuardrailSensitiveInformationAction.t option;Specifies 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. NONE – Take no action but return detection information in the trace response.
*)inputEnabled : Boolean.t option;Specifies whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
*)outputEnabled : Boolean.t option;Specifies whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. The evaluation doesn't appear in the response.
*)}val make :
?description:??? ->
?inputAction:??? ->
?outputAction:??? ->
?inputEnabled:??? ->
?outputEnabled:??? ->
name:GuardrailRegexConfigNameString.t ->
pattern:GuardrailRegexConfigPatternString.t ->
action:GuardrailSensitiveInformationAction.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `String of GuardrailRegexConfigNameString.t ])
list ]