Class: Google::Cloud::Dialogflow::CX::V3::SafetySettings

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb

Overview

Settings for Generative Safety.

Defined Under Namespace

Classes: Phrase

Instance Attribute Summary collapse

Instance Attribute Details

#banned_phrases::Array<::Google::Cloud::Dialogflow::CX::V3::SafetySettings::Phrase>

Returns Banned phrases for generated text.

Returns:



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb', line 29

class SafetySettings
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Text input which can be used for prompt or banned phrases.
  # @!attribute [rw] text
  #   @return [::String]
  #     Required. Text input which can be used for prompt or banned phrases.
  # @!attribute [rw] language_code
  #   @return [::String]
  #     Required. Language code of the phrase.
  class Phrase
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end