GuardrailContentPolicyConfigFiltersConfig constructor
const
GuardrailContentPolicyConfigFiltersConfig({
- Input<
String?> ? inputAction, - Input<
bool?> ? inputEnabled, - Input<
List< ? inputModalities,String> ?> - required Input<
String> inputStrength, - Input<
String?> ? outputAction, - Input<
bool?> ? outputEnabled, - Input<
List< ? outputModalities,String> ?> - required Input<
String> outputStrength, - required Input<
String> type,
Creates a new GuardrailContentPolicyConfigFiltersConfig.
inputAction Action to take when harmful content is detected. Valid values: BLOCK, NONE.
inputEnabled Toggles guardrail evaluation on input.
inputModalities List of selected input modalities. Valid values: IMAGE, TEXT.
inputStrength Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
outputAction Action to take when harmful content is detected. Valid values: BLOCK, NONE.
outputEnabled Toggles guardrail evaluation on output.
outputModalities List of selected output modalities. Valid values: IMAGE, TEXT.
outputStrength Strength for filters. Valid values: NONE, LOW, MEDIUM, HIGH.
type Type of contextual grounding filter.
Implementation
const GuardrailContentPolicyConfigFiltersConfig({
this.inputAction,
this.inputEnabled,
this.inputModalities,
required this.inputStrength,
this.outputAction,
this.outputEnabled,
this.outputModalities,
required this.outputStrength,
required this.type,
});