Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb

Overview

Response for Knowledge Assist. Contains suggested query and optionally includes an answer for the query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse

Returns a new instance of GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse.



2355
2356
2357
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2355

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

Instance Attribute Details

#suggested_queryGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery

Represents a suggested query. Corresponds to the JSON property suggestedQuery



2347
2348
2349
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2347

def suggested_query
  @suggested_query
end

#suggested_query_answerGoogle::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer

Represents an answer from Knowledge. Cuurently supports FAQ and Generative answers. Corresponds to the JSON property suggestedQueryAnswer



2353
2354
2355
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2353

def suggested_query_answer
  @suggested_query_answer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2360
2361
2362
2363
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 2360

def update!(**args)
  @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
  @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
end