Class: Google::Cloud::Dialogflow::V2::RaiSettings
- Inherits:
-
Object
- Object
- Google::Cloud::Dialogflow::V2::RaiSettings
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/dialogflow/v2/generator.rb
Overview
Settings for Responsible AI checks.
Defined Under Namespace
Classes: RaiCategoryConfig
Instance Attribute Summary collapse
-
#rai_category_configs ⇒ ::Array<::Google::Cloud::Dialogflow::V2::RaiSettings::RaiCategoryConfig>
Configuration for a set of RAI categories.
Instance Attribute Details
#rai_category_configs ⇒ ::Array<::Google::Cloud::Dialogflow::V2::RaiSettings::RaiCategoryConfig>
Returns Configuration for a set of RAI categories.
570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 |
# File 'proto_docs/google/cloud/dialogflow/v2/generator.rb', line 570 class RaiSettings include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Configuration for a specific RAI category. # @!attribute [rw] category # @return [::Google::Cloud::Dialogflow::V2::RaiSettings::RaiCategoryConfig::RaiCategory] # Optional. The RAI category. # @!attribute [rw] sensitivity_level # @return [::Google::Cloud::Dialogflow::V2::RaiSettings::RaiCategoryConfig::SensitivityLevel] # Optional. The sensitivity level for this category. class RaiCategoryConfig include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Enum for RAI category. module RaiCategory # Default value. RAI_CATEGORY_UNSPECIFIED = 0 # Dangerous content. DANGEROUS_CONTENT = 1 # Sexually explicit content. SEXUALLY_EXPLICIT = 2 # Harassment content. HARASSMENT = 3 # Hate speech content. HATE_SPEECH = 4 end # Enum for user-configurable sensitivity levels. module SensitivityLevel # Default value. # If unspecified, the default behavior is: # - DANGEROUS_CONTENT: BLOCK_FEW # - SEXUALLY_EXPLICIT: BLOCK_SOME # - HARASSMENT: BLOCK_SOME # - HATE_SPEECH: BLOCK_SOME SENSITIVITY_LEVEL_UNSPECIFIED = 0 # Block most potentially sensitive responses. BLOCK_MOST = 1 # Block some potentially sensitive responses. BLOCK_SOME = 2 # Block a few potentially sensitive responses. BLOCK_FEW = 3 # No filtering for this category. BLOCK_NONE = 4 end end end |