Values.GuardrailWordConfigSourceA word to configure for the guardrail.
type nonrec t = {text : GuardrailWordConfigTextString.t;Text of the word configured for the guardrail to block.
*)inputAction : GuardrailWordAction.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 : GuardrailWordAction.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 intput. 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 :
?inputAction:??? ->
?outputAction:??? ->
?inputEnabled:??? ->
?outputEnabled:??? ->
text:GuardrailWordConfigTextString.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of Boolean.t
| `Enum of string
| `String of GuardrailWordConfigTextString.t ])
list ]