Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig (v0.28.0)

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
Returns

#failure_mode=

def failure_mode=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig::FailureMode
Parameter
Returns

#response_template

def response_template() -> ::String
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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
Returns
  • (::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
Parameter
  • 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.

Returns
  • (::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.