Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy.
Customer-defined policy for the assistant.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#banned_phrases
def banned_phrases() -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::BannedPhrase>
Returns
- (::Array<::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::BannedPhrase>) — Optional. List of banned phrases.
#banned_phrases=
def banned_phrases=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::BannedPhrase>
Parameter
- value (::Array<::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::BannedPhrase>) — Optional. List of banned phrases.
Returns
- (::Array<::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::BannedPhrase>) — Optional. List of banned phrases.
#model_armor_config
def model_armor_config() -> ::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig) — Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
#model_armor_config=
def model_armor_config=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig) — Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::Assistant::CustomerPolicy::ModelArmorConfig) — Optional. Model Armor configuration to be used for sanitizing user prompts and assistant responses.