AssistantCustomerPolicyModelArmorConfig class
Constructors
-
AssistantCustomerPolicyModelArmorConfig({Input<
String?> ? failureMode, required Input<String> responseTemplate, required Input<String> userPromptTemplate}) -
Creates a new AssistantCustomerPolicyModelArmorConfig.
failureModeDefines the failure mode for Model Armor sanitization.responseTemplateThe resource name of the Model Armor template for sanitizing assistantuserPromptTemplateThe resource name of the Model Armor template for sanitizing userconst -
AssistantCustomerPolicyModelArmorConfig.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
failureMode
→ Input<
String?> ? -
Defines the failure mode for Model Armor sanitization.
The supported values: 'FAIL_OPEN', 'FAIL_CLOSED'.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
responseTemplate
→ Input<
String> -
The resource name of the Model Armor template for sanitizing assistant
responses. Format:
projects/{project}/locations/{location}/templates/{template_id}If not specified, no sanitization will be applied to the assistant response.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
userPromptTemplate
→ Input<
String> -
The resource name of the Model Armor template for sanitizing user
prompts. Format:
projects/{project}/locations/{location}/templates/{template_id}If not specified, no sanitization will be applied to the user prompt.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited