Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse

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

Sample response that the agent can use. This could be based on applicable instructions and ingested data from other systems.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse

Returns a new instance of GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse.



12601
12602
12603
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12601

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

Instance Attribute Details

#duplicate_check_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult

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



12589
12590
12591
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12589

def duplicate_check_result
  @duplicate_check_result
end

#response_textString

Optional. Sample response for Agent in text. Corresponds to the JSON property responseText

Returns:

  • (String)


12594
12595
12596
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12594

def response_text
  @response_text
end

#sourcesGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources

Sources for the suggestion. Corresponds to the JSON property sources



12599
12600
12601
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12599

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12606
12607
12608
12609
12610
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12606

def update!(**args)
  @duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
  @response_text = args[:response_text] if args.key?(:response_text)
  @sources = args[:sources] if args.key?(:sources)
end