Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestion

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

Suggestion for coaching agents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2AgentCoachingSuggestion

Returns a new instance of GoogleCloudDialogflowV2AgentCoachingSuggestion.



8065
8066
8067
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8065

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

Instance Attribute Details

#agent_action_suggestionsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion>

Optional. Suggested actions for the agent to take. Corresponds to the JSON property agentActionSuggestions



8053
8054
8055
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8053

def agent_action_suggestions
  @agent_action_suggestions
end

#applicable_instructionsArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingInstruction>

Optional. Instructions applicable based on the current context. Corresponds to the JSON property applicableInstructions



8058
8059
8060
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8058

def applicable_instructions
  @applicable_instructions
end

#sample_responsesArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse>

Optional. Sample response for the Agent. Corresponds to the JSON property sampleResponses



8063
8064
8065
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8063

def sample_responses
  @sample_responses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8070
8071
8072
8073
8074
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 8070

def update!(**args)
  @agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
  @applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
  @sample_responses = args[:sample_responses] if args.key?(:sample_responses)
end