Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion

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

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.



8434
8435
8436
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8434

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)


8422
8423
8424
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8422

def agent_action
  @agent_action
end

#duplicate_check_resultGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult

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



8427
8428
8429
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8427

def duplicate_check_result
  @duplicate_check_result
end

#sourcesGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingSuggestionSources

Sources for the suggestion. Corresponds to the JSON property sources



8432
8433
8434
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8432

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8439
8440
8441
8442
8443
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8439

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