GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec (google_api_discovery_engine v0.28.0)
View SourceSafety specification. There are two use cases: 1. when only safety_spec.enable is set, the BLOCK_LOW_AND_ABOVE threshold will be applied for all categories. 2. when safety_spec.enable is set and some safety_settings are set, only specified safety_settings are applied.
Attributes
-
enable
(type:boolean()
, default:nil
) - Enable the safety filtering on the answer response. It is false by default. -
safetySettings
(type:list(GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpecSafetySetting.t)
, default:nil
) - Optional. Safety settings. This settings are effective only when the safety_spec.enable is true.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec{ enable: boolean() | nil, safetySettings: [ GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpecSafetySetting.t() ] | nil }