Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingInstruction

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

Agent Coaching instructions that customer can configure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AgentCoachingInstruction

Returns a new instance of GoogleCloudDialogflowV2beta1AgentCoachingInstruction.



12397
12398
12399
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12397

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

Instance Attribute Details

#agent_actionString

Optional. The action that human agent should take. For example, "apologize for the slow shipping". If the users only want to use agent coaching for intent detection, agent_action can be empty Corresponds to the JSON property agentAction

Returns:

  • (String)


12366
12367
12368
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12366

def agent_action
  @agent_action
end

#conditionString

Optional. The condition of the instruction. For example, "the customer wants to cancel an order". If the users want the instruction to be triggered unconditionally, the condition can be empty. Corresponds to the JSON property condition

Returns:

  • (String)


12373
12374
12375
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12373

def condition
  @condition
end

#display_detailsString

Optional. The detailed description of this instruction. Corresponds to the JSON property displayDetails

Returns:

  • (String)


12378
12379
12380
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12378

def display_details
  @display_details
end

#display_nameString

Optional. Display name for the instruction. Corresponds to the JSON property displayName

Returns:

  • (String)


12383
12384
12385
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12383

def display_name
  @display_name
end

#duplicate_check_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult

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



12388
12389
12390
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12388

def duplicate_check_result
  @duplicate_check_result
end

#system_actionString

Optional. The action that system should take. For example, "call GetOrderTime with order_number=order number provided by the customer". If the users don't have plugins or don't want to trigger plugins, the system_action can be empty Corresponds to the JSON property systemAction

Returns:

  • (String)


12395
12396
12397
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12395

def system_action
  @system_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12402
12403
12404
12405
12406
12407
12408
12409
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12402

def update!(**args)
  @agent_action = args[:agent_action] if args.key?(:agent_action)
  @condition = args[:condition] if args.key?(:condition)
  @display_details = args[:display_details] if args.key?(:display_details)
  @display_name = args[:display_name] if args.key?(:display_name)
  @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
  @system_action = args[:system_action] if args.key?(:system_action)
end