Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig.
Configuration for customer defined Model Armor templates to be used for sanitizing user prompts and assistant responses.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#failure_mode
def failure_mode() -> ::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig::FailureMode- (::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig::FailureMode) — Optional. Defines the failure mode for Model Armor sanitization.
#failure_mode=
def failure_mode=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig::FailureMode- value (::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig::FailureMode) — Optional. Defines the failure mode for Model Armor sanitization.
- (::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig::FailureMode) — Optional. Defines the failure mode for Model Armor sanitization.
#response_template
def response_template() -> ::String-
(::String) — Optional. 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.
#response_template=
def response_template=(value) -> ::String-
value (::String) — Optional. 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.
-
(::String) — Optional. 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.
#user_prompt_template
def user_prompt_template() -> ::String-
(::String) — Optional. 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.
#user_prompt_template=
def user_prompt_template=(value) -> ::String-
value (::String) — Optional. 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.
-
(::String) — Optional. 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.