Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion

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

Overview

Actions suggested for the agent. This is based on applicable instructions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion

Returns a new instance of GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion.



19218
19219
19220
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19218

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

Instance Attribute Details

#agent_actionString

Optional. The suggested action for the agent. Corresponds to the JSON property agentAction

Returns:

  • (String)


19206
19207
19208
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19206

def agent_action
  @agent_action
end

#duplicate_check_resultGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult

Duplication check for the suggestion. Corresponds to the JSON property duplicateCheckResult



19211
19212
19213
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19211

def duplicate_check_result
  @duplicate_check_result
end

#sourcesGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources

Sources for the suggestion. Corresponds to the JSON property sources



19216
19217
19218
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19216

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19223
19224
19225
19226
19227
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 19223

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