Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion

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) ⇒ GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion

Returns a new instance of GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion.



15141
15142
15143
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15141

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)


15129
15130
15131
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15129

def agent_action
  @agent_action
end

#duplicate_check_resultGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult

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



15134
15135
15136
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15134

def duplicate_check_result
  @duplicate_check_result
end

#sourcesGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionSources

Sources for the suggestion. Corresponds to the JSON property sources



15139
15140
15141
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15139

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15146
15147
15148
15149
15150
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15146

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