Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Configuration for analyses to run on each conversation message.
Instance Attribute Summary collapse
-
#enable_entity_extraction ⇒ Boolean
(also: #enable_entity_extraction?)
Enable entity extraction in conversation messages on agent assist stage.
-
#enable_sentiment_analysis ⇒ Boolean
(also: #enable_sentiment_analysis?)
Enable sentiment analysis in conversation messages on agent assist stage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
constructor
A new instance of GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
Returns a new instance of GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig.
14029 14030 14031 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14029 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_entity_extraction ⇒ Boolean Also known as: enable_entity_extraction?
Enable entity extraction in conversation messages on agent assist stage.
If unspecified, defaults to false. Currently, this feature is not general
available, please contact Google to get access.
Corresponds to the JSON property enableEntityExtraction
14008 14009 14010 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14008 def enable_entity_extraction @enable_entity_extraction end |
#enable_sentiment_analysis ⇒ Boolean Also known as: enable_sentiment_analysis?
Enable sentiment analysis in conversation messages on agent assist stage.
If unspecified, defaults to false. Sentiment analysis inspects user input and
identifies the prevailing subjective opinion, especially to determine a user's
attitude as positive, negative, or neutral: https://cloud.google.com/natural-
language/docs/basics#sentiment_analysis For Participants.
StreamingAnalyzeContent method, result will be in
StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For
Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.
message.SentimentAnalysisResult For Conversations.ListMessages method, result
will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub
notification is configured, result will be in ConversationEvent.
new_message_payload.SentimentAnalysisResult.
Corresponds to the JSON property enableSentimentAnalysis
14026 14027 14028 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14026 def enable_sentiment_analysis @enable_sentiment_analysis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14034 14035 14036 14037 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 14034 def update!(**args) @enable_entity_extraction = args[:enable_entity_extraction] if args.key?(:enable_entity_extraction) @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis) end |