GuardrailWordPolicyConfigWordsConfig constructor

const GuardrailWordPolicyConfigWordsConfig({
  1. Input<String?>? inputAction,
  2. Input<bool?>? inputEnabled,
  3. Input<String?>? outputAction,
  4. Input<bool?>? outputEnabled,
  5. required Input<String> text,
})

Creates a new GuardrailWordPolicyConfigWordsConfig. inputAction Action to take when harmful content is detected in the input. Valid values: BLOCK, NONE. inputEnabled Whether to enable guardrail evaluation on the input. When disabled, you aren't charged for the evaluation. outputAction Action to take when harmful content is detected in the output. Valid values: BLOCK, NONE. outputEnabled Whether to enable guardrail evaluation on the output. When disabled, you aren't charged for the evaluation. text The custom word text.

Implementation

const GuardrailWordPolicyConfigWordsConfig({
  this.inputAction,
  this.inputEnabled,
  this.outputAction,
  this.outputEnabled,
  required this.text,
});