Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Configuration for analyses to run on each conversation message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig

Returns a new instance of GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig.



6578
6579
6580
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6578

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#enable_sentiment_analysisBoolean 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

Returns:

  • (Boolean)


6575
6576
6577
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6575

def enable_sentiment_analysis
  @enable_sentiment_analysis
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6583
6584
6585
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 6583

def update!(**args)
  @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
end