google-apis-dialogflow_v2beta1 0.86.0 → 0.88.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -119,13 +119,13 @@ module Google
119
119
  class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
120
120
  include Google::Apis::Core::Hashable
121
121
 
122
- # If true, DF Interaction logging is currently enabled.
122
+ # Enables DF Interaction logging.
123
123
  # Corresponds to the JSON property `enableInteractionLogging`
124
124
  # @return [Boolean]
125
125
  attr_accessor :enable_interaction_logging
126
126
  alias_method :enable_interaction_logging?, :enable_interaction_logging
127
127
 
128
- # If true, StackDriver logging is currently enabled.
128
+ # Enables StackDriver logging.
129
129
  # Corresponds to the JSON property `enableStackdriverLogging`
130
130
  # @return [Boolean]
131
131
  attr_accessor :enable_stackdriver_logging
@@ -3965,13 +3965,13 @@ module Google
3965
3965
  class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
3966
3966
  include Google::Apis::Core::Hashable
3967
3967
 
3968
- # If true, DF Interaction logging is currently enabled.
3968
+ # Enables DF Interaction logging.
3969
3969
  # Corresponds to the JSON property `enableInteractionLogging`
3970
3970
  # @return [Boolean]
3971
3971
  attr_accessor :enable_interaction_logging
3972
3972
  alias_method :enable_interaction_logging?, :enable_interaction_logging
3973
3973
 
3974
- # If true, StackDriver logging is currently enabled.
3974
+ # Enables StackDriver logging.
3975
3975
  # Corresponds to the JSON property `enableStackdriverLogging`
3976
3976
  # @return [Boolean]
3977
3977
  attr_accessor :enable_stackdriver_logging
@@ -6238,6 +6238,11 @@ module Google
6238
6238
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1TextInput]
6239
6239
  attr_accessor :text
6240
6240
 
6241
+ # The result of calling a tool's action that has been executed by the client.
6242
+ # Corresponds to the JSON property `toolCallResult`
6243
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResult]
6244
+ attr_accessor :tool_call_result
6245
+
6241
6246
  def initialize(**args)
6242
6247
  update!(**args)
6243
6248
  end
@@ -6250,6 +6255,7 @@ module Google
6250
6255
  @intent = args[:intent] if args.key?(:intent)
6251
6256
  @language_code = args[:language_code] if args.key?(:language_code)
6252
6257
  @text = args[:text] if args.key?(:text)
6258
+ @tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
6253
6259
  end
6254
6260
  end
6255
6261
 
@@ -6366,6 +6372,11 @@ module Google
6366
6372
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ResponseMessageText]
6367
6373
  attr_accessor :text
6368
6374
 
6375
+ # Represents a call of a specific tool's action with the specified inputs.
6376
+ # Corresponds to the JSON property `toolCall`
6377
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCall]
6378
+ attr_accessor :tool_call
6379
+
6369
6380
  def initialize(**args)
6370
6381
  update!(**args)
6371
6382
  end
@@ -6383,6 +6394,7 @@ module Google
6383
6394
  @play_audio = args[:play_audio] if args.key?(:play_audio)
6384
6395
  @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
6385
6396
  @text = args[:text] if args.key?(:text)
6397
+ @tool_call = args[:tool_call] if args.key?(:tool_call)
6386
6398
  end
6387
6399
  end
6388
6400
 
@@ -7005,6 +7017,95 @@ module Google
7005
7017
  end
7006
7018
  end
7007
7019
 
7020
+ # Represents a call of a specific tool's action with the specified inputs.
7021
+ class GoogleCloudDialogflowCxV3beta1ToolCall
7022
+ include Google::Apis::Core::Hashable
7023
+
7024
+ # Required. The name of the tool's action associated with this call.
7025
+ # Corresponds to the JSON property `action`
7026
+ # @return [String]
7027
+ attr_accessor :action
7028
+
7029
+ # Optional. The action's input parameters.
7030
+ # Corresponds to the JSON property `inputParameters`
7031
+ # @return [Hash<String,Object>]
7032
+ attr_accessor :input_parameters
7033
+
7034
+ # Required. The tool associated with this call. Format: `projects//locations//
7035
+ # agents//tools/`.
7036
+ # Corresponds to the JSON property `tool`
7037
+ # @return [String]
7038
+ attr_accessor :tool
7039
+
7040
+ def initialize(**args)
7041
+ update!(**args)
7042
+ end
7043
+
7044
+ # Update properties of this object
7045
+ def update!(**args)
7046
+ @action = args[:action] if args.key?(:action)
7047
+ @input_parameters = args[:input_parameters] if args.key?(:input_parameters)
7048
+ @tool = args[:tool] if args.key?(:tool)
7049
+ end
7050
+ end
7051
+
7052
+ # The result of calling a tool's action that has been executed by the client.
7053
+ class GoogleCloudDialogflowCxV3beta1ToolCallResult
7054
+ include Google::Apis::Core::Hashable
7055
+
7056
+ # Required. The name of the tool's action associated with this call.
7057
+ # Corresponds to the JSON property `action`
7058
+ # @return [String]
7059
+ attr_accessor :action
7060
+
7061
+ # An error produced by the tool call.
7062
+ # Corresponds to the JSON property `error`
7063
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ToolCallResultError]
7064
+ attr_accessor :error
7065
+
7066
+ # The tool call's output parameters.
7067
+ # Corresponds to the JSON property `outputParameters`
7068
+ # @return [Hash<String,Object>]
7069
+ attr_accessor :output_parameters
7070
+
7071
+ # Required. The tool associated with this call. Format: `projects//locations//
7072
+ # agents//tools/`.
7073
+ # Corresponds to the JSON property `tool`
7074
+ # @return [String]
7075
+ attr_accessor :tool
7076
+
7077
+ def initialize(**args)
7078
+ update!(**args)
7079
+ end
7080
+
7081
+ # Update properties of this object
7082
+ def update!(**args)
7083
+ @action = args[:action] if args.key?(:action)
7084
+ @error = args[:error] if args.key?(:error)
7085
+ @output_parameters = args[:output_parameters] if args.key?(:output_parameters)
7086
+ @tool = args[:tool] if args.key?(:tool)
7087
+ end
7088
+ end
7089
+
7090
+ # An error produced by the tool call.
7091
+ class GoogleCloudDialogflowCxV3beta1ToolCallResultError
7092
+ include Google::Apis::Core::Hashable
7093
+
7094
+ # Optional. The error message of the function.
7095
+ # Corresponds to the JSON property `message`
7096
+ # @return [String]
7097
+ attr_accessor :message
7098
+
7099
+ def initialize(**args)
7100
+ update!(**args)
7101
+ end
7102
+
7103
+ # Update properties of this object
7104
+ def update!(**args)
7105
+ @message = args[:message] if args.key?(:message)
7106
+ end
7107
+ end
7108
+
7008
7109
  # A transition route specifies a intent that can be matched and/or a data
7009
7110
  # condition that can be evaluated during a session. When a specified transition
7010
7111
  # is matched, the following actions are taken in order: * If there is a `
@@ -9871,6 +9972,159 @@ module Google
9871
9972
  end
9872
9973
  end
9873
9974
 
9975
+ # Represents a Knowledge Assist answer.
9976
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswer
9977
+ include Google::Apis::Core::Hashable
9978
+
9979
+ # The name of the answer record. Format: `projects//locations//answer Records/`.
9980
+ # Corresponds to the JSON property `answerRecord`
9981
+ # @return [String]
9982
+ attr_accessor :answer_record
9983
+
9984
+ # Represents a suggested query.
9985
+ # Corresponds to the JSON property `suggestedQuery`
9986
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery]
9987
+ attr_accessor :suggested_query
9988
+
9989
+ # Represents an answer from Knowledge. Currently supports FAQ and Generative
9990
+ # answers.
9991
+ # Corresponds to the JSON property `suggestedQueryAnswer`
9992
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer]
9993
+ attr_accessor :suggested_query_answer
9994
+
9995
+ def initialize(**args)
9996
+ update!(**args)
9997
+ end
9998
+
9999
+ # Update properties of this object
10000
+ def update!(**args)
10001
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10002
+ @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
10003
+ @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
10004
+ end
10005
+ end
10006
+
10007
+ # Represents an answer from Knowledge. Currently supports FAQ and Generative
10008
+ # answers.
10009
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer
10010
+ include Google::Apis::Core::Hashable
10011
+
10012
+ # The piece of text from the `source` that answers this suggested query.
10013
+ # Corresponds to the JSON property `answerText`
10014
+ # @return [String]
10015
+ attr_accessor :answer_text
10016
+
10017
+ # Details about source of FAQ answer.
10018
+ # Corresponds to the JSON property `faqSource`
10019
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource]
10020
+ attr_accessor :faq_source
10021
+
10022
+ # Details about source of Generative answer.
10023
+ # Corresponds to the JSON property `generativeSource`
10024
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource]
10025
+ attr_accessor :generative_source
10026
+
10027
+ def initialize(**args)
10028
+ update!(**args)
10029
+ end
10030
+
10031
+ # Update properties of this object
10032
+ def update!(**args)
10033
+ @answer_text = args[:answer_text] if args.key?(:answer_text)
10034
+ @faq_source = args[:faq_source] if args.key?(:faq_source)
10035
+ @generative_source = args[:generative_source] if args.key?(:generative_source)
10036
+ end
10037
+ end
10038
+
10039
+ # Details about source of FAQ answer.
10040
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource
10041
+ include Google::Apis::Core::Hashable
10042
+
10043
+ # The corresponding FAQ question.
10044
+ # Corresponds to the JSON property `question`
10045
+ # @return [String]
10046
+ attr_accessor :question
10047
+
10048
+ def initialize(**args)
10049
+ update!(**args)
10050
+ end
10051
+
10052
+ # Update properties of this object
10053
+ def update!(**args)
10054
+ @question = args[:question] if args.key?(:question)
10055
+ end
10056
+ end
10057
+
10058
+ # Details about source of Generative answer.
10059
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
10060
+ include Google::Apis::Core::Hashable
10061
+
10062
+ # All snippets used for this Generative Prediction, with their source URI and
10063
+ # data.
10064
+ # Corresponds to the JSON property `snippets`
10065
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet>]
10066
+ attr_accessor :snippets
10067
+
10068
+ def initialize(**args)
10069
+ update!(**args)
10070
+ end
10071
+
10072
+ # Update properties of this object
10073
+ def update!(**args)
10074
+ @snippets = args[:snippets] if args.key?(:snippets)
10075
+ end
10076
+ end
10077
+
10078
+ # Snippet Source for a Generative Prediction.
10079
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
10080
+ include Google::Apis::Core::Hashable
10081
+
10082
+ # Text taken from that URI.
10083
+ # Corresponds to the JSON property `text`
10084
+ # @return [String]
10085
+ attr_accessor :text
10086
+
10087
+ # Title of the document.
10088
+ # Corresponds to the JSON property `title`
10089
+ # @return [String]
10090
+ attr_accessor :title
10091
+
10092
+ # URI the data is sourced from.
10093
+ # Corresponds to the JSON property `uri`
10094
+ # @return [String]
10095
+ attr_accessor :uri
10096
+
10097
+ def initialize(**args)
10098
+ update!(**args)
10099
+ end
10100
+
10101
+ # Update properties of this object
10102
+ def update!(**args)
10103
+ @text = args[:text] if args.key?(:text)
10104
+ @title = args[:title] if args.key?(:title)
10105
+ @uri = args[:uri] if args.key?(:uri)
10106
+ end
10107
+ end
10108
+
10109
+ # Represents a suggested query.
10110
+ class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery
10111
+ include Google::Apis::Core::Hashable
10112
+
10113
+ # Suggested query text.
10114
+ # Corresponds to the JSON property `queryText`
10115
+ # @return [String]
10116
+ attr_accessor :query_text
10117
+
10118
+ def initialize(**args)
10119
+ update!(**args)
10120
+ end
10121
+
10122
+ # Update properties of this object
10123
+ def update!(**args)
10124
+ @query_text = args[:query_text] if args.key?(:query_text)
10125
+ end
10126
+ end
10127
+
9874
10128
  # Metadata in google::longrunning::Operation for Knowledge operations.
9875
10129
  class GoogleCloudDialogflowV2KnowledgeOperationMetadata
9876
10130
  include Google::Apis::Core::Hashable
@@ -10471,6 +10725,41 @@ module Google
10471
10725
  end
10472
10726
  end
10473
10727
 
10728
+ # The response message for Participants.SuggestKnowledgeAssist.
10729
+ class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
10730
+ include Google::Apis::Core::Hashable
10731
+
10732
+ # Number of messages prior to and including latest_message to compile the
10733
+ # suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.
10734
+ # context_size field in the request if there are fewer messages in the
10735
+ # conversation.
10736
+ # Corresponds to the JSON property `contextSize`
10737
+ # @return [Fixnum]
10738
+ attr_accessor :context_size
10739
+
10740
+ # Represents a Knowledge Assist answer.
10741
+ # Corresponds to the JSON property `knowledgeAssistAnswer`
10742
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2KnowledgeAssistAnswer]
10743
+ attr_accessor :knowledge_assist_answer
10744
+
10745
+ # The name of the latest conversation message used to compile suggestion for.
10746
+ # Format: `projects//locations//conversations//messages/`.
10747
+ # Corresponds to the JSON property `latestMessage`
10748
+ # @return [String]
10749
+ attr_accessor :latest_message
10750
+
10751
+ def initialize(**args)
10752
+ update!(**args)
10753
+ end
10754
+
10755
+ # Update properties of this object
10756
+ def update!(**args)
10757
+ @context_size = args[:context_size] if args.key?(:context_size)
10758
+ @knowledge_assist_answer = args[:knowledge_assist_answer] if args.key?(:knowledge_assist_answer)
10759
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
10760
+ end
10761
+ end
10762
+
10474
10763
  # The response message for Participants.SuggestSmartReplies.
10475
10764
  class GoogleCloudDialogflowV2SuggestSmartRepliesResponse
10476
10765
  include Google::Apis::Core::Hashable
@@ -10533,6 +10822,11 @@ module Google
10533
10822
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
10534
10823
  attr_accessor :suggest_faq_answers_response
10535
10824
 
10825
+ # The response message for Participants.SuggestKnowledgeAssist.
10826
+ # Corresponds to the JSON property `suggestKnowledgeAssistResponse`
10827
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse]
10828
+ attr_accessor :suggest_knowledge_assist_response
10829
+
10536
10830
  # The response message for Participants.SuggestSmartReplies.
10537
10831
  # Corresponds to the JSON property `suggestSmartRepliesResponse`
10538
10832
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
@@ -10547,6 +10841,7 @@ module Google
10547
10841
  @error = args[:error] if args.key?(:error)
10548
10842
  @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
10549
10843
  @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
10844
+ @suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
10550
10845
  @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
10551
10846
  end
10552
10847
  end
@@ -10842,6 +11137,11 @@ module Google
10842
11137
  # @return [String]
10843
11138
  attr_accessor :document_efficiency
10844
11139
 
11140
+ # Feedback for knowledge assist.
11141
+ # Corresponds to the JSON property `knowledgeAssistFeedback`
11142
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback]
11143
+ attr_accessor :knowledge_assist_feedback
11144
+
10845
11145
  # Feedback for knowledge search.
10846
11146
  # Corresponds to the JSON property `knowledgeSearchFeedback`
10847
11147
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback]
@@ -10861,11 +11161,41 @@ module Google
10861
11161
  @answer_relevance = args[:answer_relevance] if args.key?(:answer_relevance)
10862
11162
  @document_correctness = args[:document_correctness] if args.key?(:document_correctness)
10863
11163
  @document_efficiency = args[:document_efficiency] if args.key?(:document_efficiency)
11164
+ @knowledge_assist_feedback = args[:knowledge_assist_feedback] if args.key?(:knowledge_assist_feedback)
10864
11165
  @knowledge_search_feedback = args[:knowledge_search_feedback] if args.key?(:knowledge_search_feedback)
10865
11166
  @summarization_feedback = args[:summarization_feedback] if args.key?(:summarization_feedback)
10866
11167
  end
10867
11168
  end
10868
11169
 
11170
+ # Feedback for knowledge assist.
11171
+ class GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeAssistFeedback
11172
+ include Google::Apis::Core::Hashable
11173
+
11174
+ # Whether the suggested answer was copied by the human agent. If the value is
11175
+ # set to be true, AnswerFeedback.clicked will be updated to be true.
11176
+ # Corresponds to the JSON property `answerCopied`
11177
+ # @return [Boolean]
11178
+ attr_accessor :answer_copied
11179
+ alias_method :answer_copied?, :answer_copied
11180
+
11181
+ # The URIs clicked by the human agent. The value is appended for each
11182
+ # UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked
11183
+ # will be updated to be true.
11184
+ # Corresponds to the JSON property `clickedUris`
11185
+ # @return [Array<String>]
11186
+ attr_accessor :clicked_uris
11187
+
11188
+ def initialize(**args)
11189
+ update!(**args)
11190
+ end
11191
+
11192
+ # Update properties of this object
11193
+ def update!(**args)
11194
+ @answer_copied = args[:answer_copied] if args.key?(:answer_copied)
11195
+ @clicked_uris = args[:clicked_uris] if args.key?(:clicked_uris)
11196
+ end
11197
+ end
11198
+
10869
11199
  # Feedback for knowledge search.
10870
11200
  class GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback
10871
11201
  include Google::Apis::Core::Hashable
@@ -11429,6 +11759,12 @@ module Google
11429
11759
  # @return [String]
11430
11760
  attr_accessor :automated_agent_reply_type
11431
11761
 
11762
+ # The auth code for accessing Call Companion UI.
11763
+ # Corresponds to the JSON property `callCompanionAuthCode`
11764
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
11765
+ # @return [String]
11766
+ attr_accessor :call_companion_auth_code
11767
+
11432
11768
  # The unique identifier of the current Dialogflow CX conversation page. Format: `
11433
11769
  # projects//locations//agents//flows//pages/`.
11434
11770
  # Corresponds to the JSON property `cxCurrentPage`
@@ -11485,6 +11821,7 @@ module Google
11485
11821
  def update!(**args)
11486
11822
  @allow_cancellation = args[:allow_cancellation] if args.key?(:allow_cancellation)
11487
11823
  @automated_agent_reply_type = args[:automated_agent_reply_type] if args.key?(:automated_agent_reply_type)
11824
+ @call_companion_auth_code = args[:call_companion_auth_code] if args.key?(:call_companion_auth_code)
11488
11825
  @cx_current_page = args[:cx_current_page] if args.key?(:cx_current_page)
11489
11826
  @cx_session_parameters = args[:cx_session_parameters] if args.key?(:cx_session_parameters)
11490
11827
  @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
@@ -13704,6 +14041,17 @@ module Google
13704
14041
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig
13705
14042
  include Google::Apis::Core::Hashable
13706
14043
 
14044
+ # Optional. When disable_high_latency_features_sync_delivery is true and using
14045
+ # the AnalyzeContent API, we will not deliver the responses from high latency
14046
+ # features in the API response. The human_agent_assistant_config.
14047
+ # notification_config must be configured and enable_event_based_suggestion must
14048
+ # be set to true to receive the responses from high latency features in Pub/Sub.
14049
+ # High latency feature(s): KNOWLEDGE_ASSIST
14050
+ # Corresponds to the JSON property `disableHighLatencyFeaturesSyncDelivery`
14051
+ # @return [Boolean]
14052
+ attr_accessor :disable_high_latency_features_sync_delivery
14053
+ alias_method :disable_high_latency_features_sync_delivery?, :disable_high_latency_features_sync_delivery
14054
+
13707
14055
  # Configuration of different suggestion features. One feature can have only one
13708
14056
  # config.
13709
14057
  # Corresponds to the JSON property `featureConfigs`
@@ -13735,6 +14083,7 @@ module Google
13735
14083
 
13736
14084
  # Update properties of this object
13737
14085
  def update!(**args)
14086
+ @disable_high_latency_features_sync_delivery = args[:disable_high_latency_features_sync_delivery] if args.key?(:disable_high_latency_features_sync_delivery)
13738
14087
  @feature_configs = args[:feature_configs] if args.key?(:feature_configs)
13739
14088
  @generators = args[:generators] if args.key?(:generators)
13740
14089
  @group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
@@ -13779,6 +14128,20 @@ module Google
13779
14128
  attr_accessor :enable_event_based_suggestion
13780
14129
  alias_method :enable_event_based_suggestion?, :enable_event_based_suggestion
13781
14130
 
14131
+ # Optional. Enable query suggestion only. Supported features: KNOWLEDGE_ASSIST
14132
+ # Corresponds to the JSON property `enableQuerySuggestionOnly`
14133
+ # @return [Boolean]
14134
+ attr_accessor :enable_query_suggestion_only
14135
+ alias_method :enable_query_suggestion_only?, :enable_query_suggestion_only
14136
+
14137
+ # Optional. Enable query suggestion even if we can't find its answer. By default,
14138
+ # queries are suggested only if we find its answer. Supported features:
14139
+ # KNOWLEDGE_ASSIST
14140
+ # Corresponds to the JSON property `enableQuerySuggestionWhenNoAnswer`
14141
+ # @return [Boolean]
14142
+ attr_accessor :enable_query_suggestion_when_no_answer
14143
+ alias_method :enable_query_suggestion_when_no_answer?, :enable_query_suggestion_when_no_answer
14144
+
13782
14145
  # Config for suggestion query.
13783
14146
  # Corresponds to the JSON property `queryConfig`
13784
14147
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig]
@@ -13807,6 +14170,8 @@ module Google
13807
14170
  @disable_agent_query_logging = args[:disable_agent_query_logging] if args.key?(:disable_agent_query_logging)
13808
14171
  @enable_conversation_augmented_query = args[:enable_conversation_augmented_query] if args.key?(:enable_conversation_augmented_query)
13809
14172
  @enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
14173
+ @enable_query_suggestion_only = args[:enable_query_suggestion_only] if args.key?(:enable_query_suggestion_only)
14174
+ @enable_query_suggestion_when_no_answer = args[:enable_query_suggestion_when_no_answer] if args.key?(:enable_query_suggestion_when_no_answer)
13810
14175
  @query_config = args[:query_config] if args.key?(:query_config)
13811
14176
  @suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
13812
14177
  @suggestion_trigger_settings = args[:suggestion_trigger_settings] if args.key?(:suggestion_trigger_settings)
@@ -16384,6 +16749,159 @@ module Google
16384
16749
  end
16385
16750
  end
16386
16751
 
16752
+ # Represents a Knowledge Assist answer.
16753
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
16754
+ include Google::Apis::Core::Hashable
16755
+
16756
+ # The name of the answer record. Format: `projects//locations//answer Records/`.
16757
+ # Corresponds to the JSON property `answerRecord`
16758
+ # @return [String]
16759
+ attr_accessor :answer_record
16760
+
16761
+ # Represents a suggested query.
16762
+ # Corresponds to the JSON property `suggestedQuery`
16763
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery]
16764
+ attr_accessor :suggested_query
16765
+
16766
+ # Represents an answer from Knowledge. Currently supports FAQ and Generative
16767
+ # answers.
16768
+ # Corresponds to the JSON property `suggestedQueryAnswer`
16769
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer]
16770
+ attr_accessor :suggested_query_answer
16771
+
16772
+ def initialize(**args)
16773
+ update!(**args)
16774
+ end
16775
+
16776
+ # Update properties of this object
16777
+ def update!(**args)
16778
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
16779
+ @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
16780
+ @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
16781
+ end
16782
+ end
16783
+
16784
+ # Represents an answer from Knowledge. Currently supports FAQ and Generative
16785
+ # answers.
16786
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer
16787
+ include Google::Apis::Core::Hashable
16788
+
16789
+ # The piece of text from the `source` that answers this suggested query.
16790
+ # Corresponds to the JSON property `answerText`
16791
+ # @return [String]
16792
+ attr_accessor :answer_text
16793
+
16794
+ # Details about source of FAQ answer.
16795
+ # Corresponds to the JSON property `faqSource`
16796
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource]
16797
+ attr_accessor :faq_source
16798
+
16799
+ # Details about source of Generative answer.
16800
+ # Corresponds to the JSON property `generativeSource`
16801
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource]
16802
+ attr_accessor :generative_source
16803
+
16804
+ def initialize(**args)
16805
+ update!(**args)
16806
+ end
16807
+
16808
+ # Update properties of this object
16809
+ def update!(**args)
16810
+ @answer_text = args[:answer_text] if args.key?(:answer_text)
16811
+ @faq_source = args[:faq_source] if args.key?(:faq_source)
16812
+ @generative_source = args[:generative_source] if args.key?(:generative_source)
16813
+ end
16814
+ end
16815
+
16816
+ # Details about source of FAQ answer.
16817
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource
16818
+ include Google::Apis::Core::Hashable
16819
+
16820
+ # The corresponding FAQ question.
16821
+ # Corresponds to the JSON property `question`
16822
+ # @return [String]
16823
+ attr_accessor :question
16824
+
16825
+ def initialize(**args)
16826
+ update!(**args)
16827
+ end
16828
+
16829
+ # Update properties of this object
16830
+ def update!(**args)
16831
+ @question = args[:question] if args.key?(:question)
16832
+ end
16833
+ end
16834
+
16835
+ # Details about source of Generative answer.
16836
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
16837
+ include Google::Apis::Core::Hashable
16838
+
16839
+ # All snippets used for this Generative Prediction, with their source URI and
16840
+ # data.
16841
+ # Corresponds to the JSON property `snippets`
16842
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet>]
16843
+ attr_accessor :snippets
16844
+
16845
+ def initialize(**args)
16846
+ update!(**args)
16847
+ end
16848
+
16849
+ # Update properties of this object
16850
+ def update!(**args)
16851
+ @snippets = args[:snippets] if args.key?(:snippets)
16852
+ end
16853
+ end
16854
+
16855
+ # Snippet Source for a Generative Prediction.
16856
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
16857
+ include Google::Apis::Core::Hashable
16858
+
16859
+ # Text taken from that URI.
16860
+ # Corresponds to the JSON property `text`
16861
+ # @return [String]
16862
+ attr_accessor :text
16863
+
16864
+ # Title of the document.
16865
+ # Corresponds to the JSON property `title`
16866
+ # @return [String]
16867
+ attr_accessor :title
16868
+
16869
+ # URI the data is sourced from.
16870
+ # Corresponds to the JSON property `uri`
16871
+ # @return [String]
16872
+ attr_accessor :uri
16873
+
16874
+ def initialize(**args)
16875
+ update!(**args)
16876
+ end
16877
+
16878
+ # Update properties of this object
16879
+ def update!(**args)
16880
+ @text = args[:text] if args.key?(:text)
16881
+ @title = args[:title] if args.key?(:title)
16882
+ @uri = args[:uri] if args.key?(:uri)
16883
+ end
16884
+ end
16885
+
16886
+ # Represents a suggested query.
16887
+ class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery
16888
+ include Google::Apis::Core::Hashable
16889
+
16890
+ # Suggested query text.
16891
+ # Corresponds to the JSON property `queryText`
16892
+ # @return [String]
16893
+ attr_accessor :query_text
16894
+
16895
+ def initialize(**args)
16896
+ update!(**args)
16897
+ end
16898
+
16899
+ # Update properties of this object
16900
+ def update!(**args)
16901
+ @query_text = args[:query_text] if args.key?(:query_text)
16902
+ end
16903
+ end
16904
+
16387
16905
  # A knowledge base represents a collection of knowledge documents that you
16388
16906
  # provide to Dialogflow. Your knowledge documents contain information that may
16389
16907
  # be useful during conversations with end-users. Some Dialogflow features use
@@ -18592,6 +19110,79 @@ module Google
18592
19110
  end
18593
19111
  end
18594
19112
 
19113
+ # The request message for Participants.SuggestKnowledgeAssist.
19114
+ class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistRequest
19115
+ include Google::Apis::Core::Hashable
19116
+
19117
+ # Optional. Max number of messages prior to and including latest_message to use
19118
+ # as context when compiling the suggestion. The context size is by default 100
19119
+ # and at most 100.
19120
+ # Corresponds to the JSON property `contextSize`
19121
+ # @return [Fixnum]
19122
+ attr_accessor :context_size
19123
+
19124
+ # Optional. The name of the latest conversation message to compile suggestions
19125
+ # for. If empty, it will be the latest message of the conversation. Format: `
19126
+ # projects//locations//conversations//messages/`.
19127
+ # Corresponds to the JSON property `latestMessage`
19128
+ # @return [String]
19129
+ attr_accessor :latest_message
19130
+
19131
+ # Optional. The previously suggested query for the given conversation. This
19132
+ # helps identify whether the next suggestion we generate is resonably different
19133
+ # from the previous one. This is useful to avoid similar suggestions within the
19134
+ # conversation.
19135
+ # Corresponds to the JSON property `previousSuggestedQuery`
19136
+ # @return [String]
19137
+ attr_accessor :previous_suggested_query
19138
+
19139
+ def initialize(**args)
19140
+ update!(**args)
19141
+ end
19142
+
19143
+ # Update properties of this object
19144
+ def update!(**args)
19145
+ @context_size = args[:context_size] if args.key?(:context_size)
19146
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
19147
+ @previous_suggested_query = args[:previous_suggested_query] if args.key?(:previous_suggested_query)
19148
+ end
19149
+ end
19150
+
19151
+ # The response message for Participants.SuggestKnowledgeAssist.
19152
+ class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse
19153
+ include Google::Apis::Core::Hashable
19154
+
19155
+ # Number of messages prior to and including latest_message to compile the
19156
+ # suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.
19157
+ # context_size field in the request if there are fewer messages in the
19158
+ # conversation.
19159
+ # Corresponds to the JSON property `contextSize`
19160
+ # @return [Fixnum]
19161
+ attr_accessor :context_size
19162
+
19163
+ # Represents a Knowledge Assist answer.
19164
+ # Corresponds to the JSON property `knowledgeAssistAnswer`
19165
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer]
19166
+ attr_accessor :knowledge_assist_answer
19167
+
19168
+ # The name of the latest conversation message used to compile suggestion for.
19169
+ # Format: `projects//locations//conversations//messages/`.
19170
+ # Corresponds to the JSON property `latestMessage`
19171
+ # @return [String]
19172
+ attr_accessor :latest_message
19173
+
19174
+ def initialize(**args)
19175
+ update!(**args)
19176
+ end
19177
+
19178
+ # Update properties of this object
19179
+ def update!(**args)
19180
+ @context_size = args[:context_size] if args.key?(:context_size)
19181
+ @knowledge_assist_answer = args[:knowledge_assist_answer] if args.key?(:knowledge_assist_answer)
19182
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
19183
+ end
19184
+ end
19185
+
18595
19186
  # The request message for Participants.SuggestSmartReplies.
18596
19187
  class GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
18597
19188
  include Google::Apis::Core::Hashable
@@ -18914,6 +19505,11 @@ module Google
18914
19505
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
18915
19506
  attr_accessor :suggest_faq_answers_response
18916
19507
 
19508
+ # The response message for Participants.SuggestKnowledgeAssist.
19509
+ # Corresponds to the JSON property `suggestKnowledgeAssistResponse`
19510
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse]
19511
+ attr_accessor :suggest_knowledge_assist_response
19512
+
18917
19513
  # The response message for Participants.SuggestSmartReplies.
18918
19514
  # Corresponds to the JSON property `suggestSmartRepliesResponse`
18919
19515
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse]
@@ -18930,6 +19526,7 @@ module Google
18930
19526
  @suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
18931
19527
  @suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_response)
18932
19528
  @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
19529
+ @suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
18933
19530
  @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
18934
19531
  end
18935
19532
  end