Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion

Inherits:
Object
  • Object
show all
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

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.



12512
12513
12514
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12512

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)


12500
12501
12502
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12500

def agent_action
  @agent_action
end

#duplicate_check_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult

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



12505
12506
12507
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12505

def duplicate_check_result
  @duplicate_check_result
end

#sourcesGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources

Sources for the suggestion. Corresponds to the JSON property sources



12510
12511
12512
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12510

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12517
12518
12519
12520
12521
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12517

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