Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion

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

Returns a new instance of GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion.



8096
8097
8098
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8096

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)


8084
8085
8086
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8084

def agent_action
  @agent_action
end

#duplicate_check_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult

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



8089
8090
8091
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8089

def duplicate_check_result
  @duplicate_check_result
end

#sourcesGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionSources

Sources for the suggestion. Corresponds to the JSON property sources



8094
8095
8096
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8094

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8101
8102
8103
8104
8105
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8101

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