GuardrailContentPolicyConfigFiltersConfig class
Constructors
-
GuardrailContentPolicyConfigFiltersConfig({Input<String?>? inputAction, Input<bool?>? inputEnabled, Input<List<String>?>? inputModalities, required Input<String> inputStrength, Input<String?>? outputAction, Input<bool?>? outputEnabled, Input<List<String>?>? outputModalities, 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.
const
-
GuardrailContentPolicyConfigFiltersConfig.fromMap(Map<String, dynamic> map)
-
factory
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
inputAction
→ Input<String?>?
-
Action to take when harmful content is detected. Valid values:
BLOCK, NONE.
final
-
inputEnabled
→ Input<bool?>?
-
Toggles guardrail evaluation on input.
final
-
inputModalities
→ Input<List<String>?>?
-
List of selected input modalities. Valid values:
IMAGE, TEXT.
final
-
inputStrength
→ Input<String>
-
Strength for filters. Valid values:
NONE, LOW, MEDIUM, HIGH.
final
-
outputAction
→ Input<String?>?
-
Action to take when harmful content is detected. Valid values:
BLOCK, NONE.
final
-
outputEnabled
→ Input<bool?>?
-
Toggles guardrail evaluation on output.
final
-
outputModalities
→ Input<List<String>?>?
-
List of selected output modalities. Valid values:
IMAGE, TEXT.
final
-
outputStrength
→ Input<String>
-
Strength for filters. Valid values:
NONE, LOW, MEDIUM, HIGH.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
type
→ Input<String>
-
Type of contextual grounding filter.
final