GuardrailWordPolicyConfigWordsConfig constructor
const
GuardrailWordPolicyConfigWordsConfig({})
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,
});