google-apis-dialogflow_v2 0.88.0 → 0.90.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96bb51a687ebab2c718584b1b55b36e9ea0e2d1fce9b5052017f132c68781c73
|
4
|
+
data.tar.gz: 6fb7cd3c971f05bd6b830dd63ce80c33bf631ab482eca7309f7cb02d7a8abb7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dda2b5f4a4f79963bd6c0e7ff5464ed9f3e53dfabbacfd03841f028415f359bdd12a3662e914777b568f56d32c58a78beb87c9198107e0927d953c7580e03922
|
7
|
+
data.tar.gz: 8cd8f808222f8ed0849473ad3142276aa099bb52e5ed2a7ecff9d0ada6bb3458b920774ec9c5e023d7b481f887ce4b71573aa5a69d7475d1347f81c9506d9c59
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v2
|
2
2
|
|
3
|
+
### v0.90.0 (2024-06-16)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240607
|
6
|
+
|
7
|
+
### v0.89.0 (2024-06-09)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240603
|
10
|
+
|
3
11
|
### v0.88.0 (2024-06-02)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240523
|
@@ -119,13 +119,13 @@ module Google
|
|
119
119
|
class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
|
120
120
|
include Google::Apis::Core::Hashable
|
121
121
|
|
122
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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
|
-
#
|
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::DialogflowV2::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::DialogflowV2::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::DialogflowV2::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::DialogflowV2::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::DialogflowV2::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 `
|
@@ -7845,6 +7946,11 @@ module Google
|
|
7845
7946
|
# @return [String]
|
7846
7947
|
attr_accessor :document_efficiency
|
7847
7948
|
|
7949
|
+
# Feedback for knowledge assist.
|
7950
|
+
# Corresponds to the JSON property `knowledgeAssistFeedback`
|
7951
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback]
|
7952
|
+
attr_accessor :knowledge_assist_feedback
|
7953
|
+
|
7848
7954
|
# Feedback for knowledge search.
|
7849
7955
|
# Corresponds to the JSON property `knowledgeSearchFeedback`
|
7850
7956
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback]
|
@@ -7864,11 +7970,41 @@ module Google
|
|
7864
7970
|
@answer_relevance = args[:answer_relevance] if args.key?(:answer_relevance)
|
7865
7971
|
@document_correctness = args[:document_correctness] if args.key?(:document_correctness)
|
7866
7972
|
@document_efficiency = args[:document_efficiency] if args.key?(:document_efficiency)
|
7973
|
+
@knowledge_assist_feedback = args[:knowledge_assist_feedback] if args.key?(:knowledge_assist_feedback)
|
7867
7974
|
@knowledge_search_feedback = args[:knowledge_search_feedback] if args.key?(:knowledge_search_feedback)
|
7868
7975
|
@summarization_feedback = args[:summarization_feedback] if args.key?(:summarization_feedback)
|
7869
7976
|
end
|
7870
7977
|
end
|
7871
7978
|
|
7979
|
+
# Feedback for knowledge assist.
|
7980
|
+
class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback
|
7981
|
+
include Google::Apis::Core::Hashable
|
7982
|
+
|
7983
|
+
# Whether the suggested answer was copied by the human agent. If the value is
|
7984
|
+
# set to be true, AnswerFeedback.clicked will be updated to be true.
|
7985
|
+
# Corresponds to the JSON property `answerCopied`
|
7986
|
+
# @return [Boolean]
|
7987
|
+
attr_accessor :answer_copied
|
7988
|
+
alias_method :answer_copied?, :answer_copied
|
7989
|
+
|
7990
|
+
# The URIs clicked by the human agent. The value is appended for each
|
7991
|
+
# UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked
|
7992
|
+
# will be updated to be true.
|
7993
|
+
# Corresponds to the JSON property `clickedUris`
|
7994
|
+
# @return [Array<String>]
|
7995
|
+
attr_accessor :clicked_uris
|
7996
|
+
|
7997
|
+
def initialize(**args)
|
7998
|
+
update!(**args)
|
7999
|
+
end
|
8000
|
+
|
8001
|
+
# Update properties of this object
|
8002
|
+
def update!(**args)
|
8003
|
+
@answer_copied = args[:answer_copied] if args.key?(:answer_copied)
|
8004
|
+
@clicked_uris = args[:clicked_uris] if args.key?(:clicked_uris)
|
8005
|
+
end
|
8006
|
+
end
|
8007
|
+
|
7872
8008
|
# Feedback for knowledge search.
|
7873
8009
|
class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback
|
7874
8010
|
include Google::Apis::Core::Hashable
|
@@ -10932,6 +11068,17 @@ module Google
|
|
10932
11068
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig
|
10933
11069
|
include Google::Apis::Core::Hashable
|
10934
11070
|
|
11071
|
+
# Optional. When disable_high_latency_features_sync_delivery is true and using
|
11072
|
+
# the AnalyzeContent API, we will not deliver the responses from high latency
|
11073
|
+
# features in the API response. The human_agent_assistant_config.
|
11074
|
+
# notification_config must be configured and enable_event_based_suggestion must
|
11075
|
+
# be set to true to receive the responses from high latency features in Pub/Sub.
|
11076
|
+
# High latency feature(s): KNOWLEDGE_ASSIST
|
11077
|
+
# Corresponds to the JSON property `disableHighLatencyFeaturesSyncDelivery`
|
11078
|
+
# @return [Boolean]
|
11079
|
+
attr_accessor :disable_high_latency_features_sync_delivery
|
11080
|
+
alias_method :disable_high_latency_features_sync_delivery?, :disable_high_latency_features_sync_delivery
|
11081
|
+
|
10935
11082
|
# Configuration of different suggestion features. One feature can have only one
|
10936
11083
|
# config.
|
10937
11084
|
# Corresponds to the JSON property `featureConfigs`
|
@@ -10963,6 +11110,7 @@ module Google
|
|
10963
11110
|
|
10964
11111
|
# Update properties of this object
|
10965
11112
|
def update!(**args)
|
11113
|
+
@disable_high_latency_features_sync_delivery = args[:disable_high_latency_features_sync_delivery] if args.key?(:disable_high_latency_features_sync_delivery)
|
10966
11114
|
@feature_configs = args[:feature_configs] if args.key?(:feature_configs)
|
10967
11115
|
@generators = args[:generators] if args.key?(:generators)
|
10968
11116
|
@group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
|
@@ -11007,6 +11155,20 @@ module Google
|
|
11007
11155
|
attr_accessor :enable_event_based_suggestion
|
11008
11156
|
alias_method :enable_event_based_suggestion?, :enable_event_based_suggestion
|
11009
11157
|
|
11158
|
+
# Optional. Enable query suggestion only. Supported features: KNOWLEDGE_ASSIST
|
11159
|
+
# Corresponds to the JSON property `enableQuerySuggestionOnly`
|
11160
|
+
# @return [Boolean]
|
11161
|
+
attr_accessor :enable_query_suggestion_only
|
11162
|
+
alias_method :enable_query_suggestion_only?, :enable_query_suggestion_only
|
11163
|
+
|
11164
|
+
# Optional. Enable query suggestion even if we can't find its answer. By default,
|
11165
|
+
# queries are suggested only if we find its answer. Supported features:
|
11166
|
+
# KNOWLEDGE_ASSIST
|
11167
|
+
# Corresponds to the JSON property `enableQuerySuggestionWhenNoAnswer`
|
11168
|
+
# @return [Boolean]
|
11169
|
+
attr_accessor :enable_query_suggestion_when_no_answer
|
11170
|
+
alias_method :enable_query_suggestion_when_no_answer?, :enable_query_suggestion_when_no_answer
|
11171
|
+
|
11010
11172
|
# Config for suggestion query.
|
11011
11173
|
# Corresponds to the JSON property `queryConfig`
|
11012
11174
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig]
|
@@ -11035,6 +11197,8 @@ module Google
|
|
11035
11197
|
@disable_agent_query_logging = args[:disable_agent_query_logging] if args.key?(:disable_agent_query_logging)
|
11036
11198
|
@enable_conversation_augmented_query = args[:enable_conversation_augmented_query] if args.key?(:enable_conversation_augmented_query)
|
11037
11199
|
@enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
|
11200
|
+
@enable_query_suggestion_only = args[:enable_query_suggestion_only] if args.key?(:enable_query_suggestion_only)
|
11201
|
+
@enable_query_suggestion_when_no_answer = args[:enable_query_suggestion_when_no_answer] if args.key?(:enable_query_suggestion_when_no_answer)
|
11038
11202
|
@query_config = args[:query_config] if args.key?(:query_config)
|
11039
11203
|
@suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
|
11040
11204
|
@suggestion_trigger_settings = args[:suggestion_trigger_settings] if args.key?(:suggestion_trigger_settings)
|
@@ -13120,6 +13284,159 @@ module Google
|
|
13120
13284
|
end
|
13121
13285
|
end
|
13122
13286
|
|
13287
|
+
# Represents a Knowledge Assist answer.
|
13288
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswer
|
13289
|
+
include Google::Apis::Core::Hashable
|
13290
|
+
|
13291
|
+
# The name of the answer record. Format: `projects//locations//answer Records/`.
|
13292
|
+
# Corresponds to the JSON property `answerRecord`
|
13293
|
+
# @return [String]
|
13294
|
+
attr_accessor :answer_record
|
13295
|
+
|
13296
|
+
# Represents a suggested query.
|
13297
|
+
# Corresponds to the JSON property `suggestedQuery`
|
13298
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery]
|
13299
|
+
attr_accessor :suggested_query
|
13300
|
+
|
13301
|
+
# Represents an answer from Knowledge. Currently supports FAQ and Generative
|
13302
|
+
# answers.
|
13303
|
+
# Corresponds to the JSON property `suggestedQueryAnswer`
|
13304
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer]
|
13305
|
+
attr_accessor :suggested_query_answer
|
13306
|
+
|
13307
|
+
def initialize(**args)
|
13308
|
+
update!(**args)
|
13309
|
+
end
|
13310
|
+
|
13311
|
+
# Update properties of this object
|
13312
|
+
def update!(**args)
|
13313
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
13314
|
+
@suggested_query = args[:suggested_query] if args.key?(:suggested_query)
|
13315
|
+
@suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
|
13316
|
+
end
|
13317
|
+
end
|
13318
|
+
|
13319
|
+
# Represents an answer from Knowledge. Currently supports FAQ and Generative
|
13320
|
+
# answers.
|
13321
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer
|
13322
|
+
include Google::Apis::Core::Hashable
|
13323
|
+
|
13324
|
+
# The piece of text from the `source` that answers this suggested query.
|
13325
|
+
# Corresponds to the JSON property `answerText`
|
13326
|
+
# @return [String]
|
13327
|
+
attr_accessor :answer_text
|
13328
|
+
|
13329
|
+
# Details about source of FAQ answer.
|
13330
|
+
# Corresponds to the JSON property `faqSource`
|
13331
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource]
|
13332
|
+
attr_accessor :faq_source
|
13333
|
+
|
13334
|
+
# Details about source of Generative answer.
|
13335
|
+
# Corresponds to the JSON property `generativeSource`
|
13336
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource]
|
13337
|
+
attr_accessor :generative_source
|
13338
|
+
|
13339
|
+
def initialize(**args)
|
13340
|
+
update!(**args)
|
13341
|
+
end
|
13342
|
+
|
13343
|
+
# Update properties of this object
|
13344
|
+
def update!(**args)
|
13345
|
+
@answer_text = args[:answer_text] if args.key?(:answer_text)
|
13346
|
+
@faq_source = args[:faq_source] if args.key?(:faq_source)
|
13347
|
+
@generative_source = args[:generative_source] if args.key?(:generative_source)
|
13348
|
+
end
|
13349
|
+
end
|
13350
|
+
|
13351
|
+
# Details about source of FAQ answer.
|
13352
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource
|
13353
|
+
include Google::Apis::Core::Hashable
|
13354
|
+
|
13355
|
+
# The corresponding FAQ question.
|
13356
|
+
# Corresponds to the JSON property `question`
|
13357
|
+
# @return [String]
|
13358
|
+
attr_accessor :question
|
13359
|
+
|
13360
|
+
def initialize(**args)
|
13361
|
+
update!(**args)
|
13362
|
+
end
|
13363
|
+
|
13364
|
+
# Update properties of this object
|
13365
|
+
def update!(**args)
|
13366
|
+
@question = args[:question] if args.key?(:question)
|
13367
|
+
end
|
13368
|
+
end
|
13369
|
+
|
13370
|
+
# Details about source of Generative answer.
|
13371
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
|
13372
|
+
include Google::Apis::Core::Hashable
|
13373
|
+
|
13374
|
+
# All snippets used for this Generative Prediction, with their source URI and
|
13375
|
+
# data.
|
13376
|
+
# Corresponds to the JSON property `snippets`
|
13377
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet>]
|
13378
|
+
attr_accessor :snippets
|
13379
|
+
|
13380
|
+
def initialize(**args)
|
13381
|
+
update!(**args)
|
13382
|
+
end
|
13383
|
+
|
13384
|
+
# Update properties of this object
|
13385
|
+
def update!(**args)
|
13386
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
13387
|
+
end
|
13388
|
+
end
|
13389
|
+
|
13390
|
+
# Snippet Source for a Generative Prediction.
|
13391
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
|
13392
|
+
include Google::Apis::Core::Hashable
|
13393
|
+
|
13394
|
+
# Text taken from that URI.
|
13395
|
+
# Corresponds to the JSON property `text`
|
13396
|
+
# @return [String]
|
13397
|
+
attr_accessor :text
|
13398
|
+
|
13399
|
+
# Title of the document.
|
13400
|
+
# Corresponds to the JSON property `title`
|
13401
|
+
# @return [String]
|
13402
|
+
attr_accessor :title
|
13403
|
+
|
13404
|
+
# URI the data is sourced from.
|
13405
|
+
# Corresponds to the JSON property `uri`
|
13406
|
+
# @return [String]
|
13407
|
+
attr_accessor :uri
|
13408
|
+
|
13409
|
+
def initialize(**args)
|
13410
|
+
update!(**args)
|
13411
|
+
end
|
13412
|
+
|
13413
|
+
# Update properties of this object
|
13414
|
+
def update!(**args)
|
13415
|
+
@text = args[:text] if args.key?(:text)
|
13416
|
+
@title = args[:title] if args.key?(:title)
|
13417
|
+
@uri = args[:uri] if args.key?(:uri)
|
13418
|
+
end
|
13419
|
+
end
|
13420
|
+
|
13421
|
+
# Represents a suggested query.
|
13422
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery
|
13423
|
+
include Google::Apis::Core::Hashable
|
13424
|
+
|
13425
|
+
# Suggested query text.
|
13426
|
+
# Corresponds to the JSON property `queryText`
|
13427
|
+
# @return [String]
|
13428
|
+
attr_accessor :query_text
|
13429
|
+
|
13430
|
+
def initialize(**args)
|
13431
|
+
update!(**args)
|
13432
|
+
end
|
13433
|
+
|
13434
|
+
# Update properties of this object
|
13435
|
+
def update!(**args)
|
13436
|
+
@query_text = args[:query_text] if args.key?(:query_text)
|
13437
|
+
end
|
13438
|
+
end
|
13439
|
+
|
13123
13440
|
# A knowledge base represents a collection of knowledge documents that you
|
13124
13441
|
# provide to Dialogflow. Your knowledge documents contain information that may
|
13125
13442
|
# be useful during conversations with end-users. Some Dialogflow features use
|
@@ -15182,6 +15499,79 @@ module Google
|
|
15182
15499
|
end
|
15183
15500
|
end
|
15184
15501
|
|
15502
|
+
# The request message for Participants.SuggestKnowledgeAssist.
|
15503
|
+
class GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest
|
15504
|
+
include Google::Apis::Core::Hashable
|
15505
|
+
|
15506
|
+
# Optional. Max number of messages prior to and including latest_message to use
|
15507
|
+
# as context when compiling the suggestion. The context size is by default 100
|
15508
|
+
# and at most 100.
|
15509
|
+
# Corresponds to the JSON property `contextSize`
|
15510
|
+
# @return [Fixnum]
|
15511
|
+
attr_accessor :context_size
|
15512
|
+
|
15513
|
+
# Optional. The name of the latest conversation message to compile suggestions
|
15514
|
+
# for. If empty, it will be the latest message of the conversation. Format: `
|
15515
|
+
# projects//locations//conversations//messages/`.
|
15516
|
+
# Corresponds to the JSON property `latestMessage`
|
15517
|
+
# @return [String]
|
15518
|
+
attr_accessor :latest_message
|
15519
|
+
|
15520
|
+
# Optional. The previously suggested query for the given conversation. This
|
15521
|
+
# helps identify whether the next suggestion we generate is resonably different
|
15522
|
+
# from the previous one. This is useful to avoid similar suggestions within the
|
15523
|
+
# conversation.
|
15524
|
+
# Corresponds to the JSON property `previousSuggestedQuery`
|
15525
|
+
# @return [String]
|
15526
|
+
attr_accessor :previous_suggested_query
|
15527
|
+
|
15528
|
+
def initialize(**args)
|
15529
|
+
update!(**args)
|
15530
|
+
end
|
15531
|
+
|
15532
|
+
# Update properties of this object
|
15533
|
+
def update!(**args)
|
15534
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
15535
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
15536
|
+
@previous_suggested_query = args[:previous_suggested_query] if args.key?(:previous_suggested_query)
|
15537
|
+
end
|
15538
|
+
end
|
15539
|
+
|
15540
|
+
# The response message for Participants.SuggestKnowledgeAssist.
|
15541
|
+
class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
|
15542
|
+
include Google::Apis::Core::Hashable
|
15543
|
+
|
15544
|
+
# Number of messages prior to and including latest_message to compile the
|
15545
|
+
# suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.
|
15546
|
+
# context_size field in the request if there are fewer messages in the
|
15547
|
+
# conversation.
|
15548
|
+
# Corresponds to the JSON property `contextSize`
|
15549
|
+
# @return [Fixnum]
|
15550
|
+
attr_accessor :context_size
|
15551
|
+
|
15552
|
+
# Represents a Knowledge Assist answer.
|
15553
|
+
# Corresponds to the JSON property `knowledgeAssistAnswer`
|
15554
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswer]
|
15555
|
+
attr_accessor :knowledge_assist_answer
|
15556
|
+
|
15557
|
+
# The name of the latest conversation message used to compile suggestion for.
|
15558
|
+
# Format: `projects//locations//conversations//messages/`.
|
15559
|
+
# Corresponds to the JSON property `latestMessage`
|
15560
|
+
# @return [String]
|
15561
|
+
attr_accessor :latest_message
|
15562
|
+
|
15563
|
+
def initialize(**args)
|
15564
|
+
update!(**args)
|
15565
|
+
end
|
15566
|
+
|
15567
|
+
# Update properties of this object
|
15568
|
+
def update!(**args)
|
15569
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
15570
|
+
@knowledge_assist_answer = args[:knowledge_assist_answer] if args.key?(:knowledge_assist_answer)
|
15571
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
15572
|
+
end
|
15573
|
+
end
|
15574
|
+
|
15185
15575
|
# The request message for Participants.SuggestSmartReplies.
|
15186
15576
|
class GoogleCloudDialogflowV2SuggestSmartRepliesRequest
|
15187
15577
|
include Google::Apis::Core::Hashable
|
@@ -15320,6 +15710,11 @@ module Google
|
|
15320
15710
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
|
15321
15711
|
attr_accessor :suggest_faq_answers_response
|
15322
15712
|
|
15713
|
+
# The response message for Participants.SuggestKnowledgeAssist.
|
15714
|
+
# Corresponds to the JSON property `suggestKnowledgeAssistResponse`
|
15715
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse]
|
15716
|
+
attr_accessor :suggest_knowledge_assist_response
|
15717
|
+
|
15323
15718
|
# The response message for Participants.SuggestSmartReplies.
|
15324
15719
|
# Corresponds to the JSON property `suggestSmartRepliesResponse`
|
15325
15720
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
|
@@ -15334,6 +15729,7 @@ module Google
|
|
15334
15729
|
@error = args[:error] if args.key?(:error)
|
15335
15730
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
15336
15731
|
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
15732
|
+
@suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
|
15337
15733
|
@suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
|
15338
15734
|
end
|
15339
15735
|
end
|
@@ -18372,6 +18768,159 @@ module Google
|
|
18372
18768
|
end
|
18373
18769
|
end
|
18374
18770
|
|
18771
|
+
# Represents a Knowledge Assist answer.
|
18772
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
|
18773
|
+
include Google::Apis::Core::Hashable
|
18774
|
+
|
18775
|
+
# The name of the answer record. Format: `projects//locations//answer Records/`.
|
18776
|
+
# Corresponds to the JSON property `answerRecord`
|
18777
|
+
# @return [String]
|
18778
|
+
attr_accessor :answer_record
|
18779
|
+
|
18780
|
+
# Represents a suggested query.
|
18781
|
+
# Corresponds to the JSON property `suggestedQuery`
|
18782
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery]
|
18783
|
+
attr_accessor :suggested_query
|
18784
|
+
|
18785
|
+
# Represents an answer from Knowledge. Currently supports FAQ and Generative
|
18786
|
+
# answers.
|
18787
|
+
# Corresponds to the JSON property `suggestedQueryAnswer`
|
18788
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer]
|
18789
|
+
attr_accessor :suggested_query_answer
|
18790
|
+
|
18791
|
+
def initialize(**args)
|
18792
|
+
update!(**args)
|
18793
|
+
end
|
18794
|
+
|
18795
|
+
# Update properties of this object
|
18796
|
+
def update!(**args)
|
18797
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
18798
|
+
@suggested_query = args[:suggested_query] if args.key?(:suggested_query)
|
18799
|
+
@suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
|
18800
|
+
end
|
18801
|
+
end
|
18802
|
+
|
18803
|
+
# Represents an answer from Knowledge. Currently supports FAQ and Generative
|
18804
|
+
# answers.
|
18805
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer
|
18806
|
+
include Google::Apis::Core::Hashable
|
18807
|
+
|
18808
|
+
# The piece of text from the `source` that answers this suggested query.
|
18809
|
+
# Corresponds to the JSON property `answerText`
|
18810
|
+
# @return [String]
|
18811
|
+
attr_accessor :answer_text
|
18812
|
+
|
18813
|
+
# Details about source of FAQ answer.
|
18814
|
+
# Corresponds to the JSON property `faqSource`
|
18815
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource]
|
18816
|
+
attr_accessor :faq_source
|
18817
|
+
|
18818
|
+
# Details about source of Generative answer.
|
18819
|
+
# Corresponds to the JSON property `generativeSource`
|
18820
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource]
|
18821
|
+
attr_accessor :generative_source
|
18822
|
+
|
18823
|
+
def initialize(**args)
|
18824
|
+
update!(**args)
|
18825
|
+
end
|
18826
|
+
|
18827
|
+
# Update properties of this object
|
18828
|
+
def update!(**args)
|
18829
|
+
@answer_text = args[:answer_text] if args.key?(:answer_text)
|
18830
|
+
@faq_source = args[:faq_source] if args.key?(:faq_source)
|
18831
|
+
@generative_source = args[:generative_source] if args.key?(:generative_source)
|
18832
|
+
end
|
18833
|
+
end
|
18834
|
+
|
18835
|
+
# Details about source of FAQ answer.
|
18836
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource
|
18837
|
+
include Google::Apis::Core::Hashable
|
18838
|
+
|
18839
|
+
# The corresponding FAQ question.
|
18840
|
+
# Corresponds to the JSON property `question`
|
18841
|
+
# @return [String]
|
18842
|
+
attr_accessor :question
|
18843
|
+
|
18844
|
+
def initialize(**args)
|
18845
|
+
update!(**args)
|
18846
|
+
end
|
18847
|
+
|
18848
|
+
# Update properties of this object
|
18849
|
+
def update!(**args)
|
18850
|
+
@question = args[:question] if args.key?(:question)
|
18851
|
+
end
|
18852
|
+
end
|
18853
|
+
|
18854
|
+
# Details about source of Generative answer.
|
18855
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
|
18856
|
+
include Google::Apis::Core::Hashable
|
18857
|
+
|
18858
|
+
# All snippets used for this Generative Prediction, with their source URI and
|
18859
|
+
# data.
|
18860
|
+
# Corresponds to the JSON property `snippets`
|
18861
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet>]
|
18862
|
+
attr_accessor :snippets
|
18863
|
+
|
18864
|
+
def initialize(**args)
|
18865
|
+
update!(**args)
|
18866
|
+
end
|
18867
|
+
|
18868
|
+
# Update properties of this object
|
18869
|
+
def update!(**args)
|
18870
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
18871
|
+
end
|
18872
|
+
end
|
18873
|
+
|
18874
|
+
# Snippet Source for a Generative Prediction.
|
18875
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
|
18876
|
+
include Google::Apis::Core::Hashable
|
18877
|
+
|
18878
|
+
# Text taken from that URI.
|
18879
|
+
# Corresponds to the JSON property `text`
|
18880
|
+
# @return [String]
|
18881
|
+
attr_accessor :text
|
18882
|
+
|
18883
|
+
# Title of the document.
|
18884
|
+
# Corresponds to the JSON property `title`
|
18885
|
+
# @return [String]
|
18886
|
+
attr_accessor :title
|
18887
|
+
|
18888
|
+
# URI the data is sourced from.
|
18889
|
+
# Corresponds to the JSON property `uri`
|
18890
|
+
# @return [String]
|
18891
|
+
attr_accessor :uri
|
18892
|
+
|
18893
|
+
def initialize(**args)
|
18894
|
+
update!(**args)
|
18895
|
+
end
|
18896
|
+
|
18897
|
+
# Update properties of this object
|
18898
|
+
def update!(**args)
|
18899
|
+
@text = args[:text] if args.key?(:text)
|
18900
|
+
@title = args[:title] if args.key?(:title)
|
18901
|
+
@uri = args[:uri] if args.key?(:uri)
|
18902
|
+
end
|
18903
|
+
end
|
18904
|
+
|
18905
|
+
# Represents a suggested query.
|
18906
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery
|
18907
|
+
include Google::Apis::Core::Hashable
|
18908
|
+
|
18909
|
+
# Suggested query text.
|
18910
|
+
# Corresponds to the JSON property `queryText`
|
18911
|
+
# @return [String]
|
18912
|
+
attr_accessor :query_text
|
18913
|
+
|
18914
|
+
def initialize(**args)
|
18915
|
+
update!(**args)
|
18916
|
+
end
|
18917
|
+
|
18918
|
+
# Update properties of this object
|
18919
|
+
def update!(**args)
|
18920
|
+
@query_text = args[:query_text] if args.key?(:query_text)
|
18921
|
+
end
|
18922
|
+
end
|
18923
|
+
|
18375
18924
|
# Metadata in google::longrunning::Operation for Knowledge operations.
|
18376
18925
|
class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
|
18377
18926
|
include Google::Apis::Core::Hashable
|
@@ -18998,6 +19547,41 @@ module Google
|
|
18998
19547
|
end
|
18999
19548
|
end
|
19000
19549
|
|
19550
|
+
# The response message for Participants.SuggestKnowledgeAssist.
|
19551
|
+
class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse
|
19552
|
+
include Google::Apis::Core::Hashable
|
19553
|
+
|
19554
|
+
# Number of messages prior to and including latest_message to compile the
|
19555
|
+
# suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.
|
19556
|
+
# context_size field in the request if there are fewer messages in the
|
19557
|
+
# conversation.
|
19558
|
+
# Corresponds to the JSON property `contextSize`
|
19559
|
+
# @return [Fixnum]
|
19560
|
+
attr_accessor :context_size
|
19561
|
+
|
19562
|
+
# Represents a Knowledge Assist answer.
|
19563
|
+
# Corresponds to the JSON property `knowledgeAssistAnswer`
|
19564
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer]
|
19565
|
+
attr_accessor :knowledge_assist_answer
|
19566
|
+
|
19567
|
+
# The name of the latest conversation message used to compile suggestion for.
|
19568
|
+
# Format: `projects//locations//conversations//messages/`.
|
19569
|
+
# Corresponds to the JSON property `latestMessage`
|
19570
|
+
# @return [String]
|
19571
|
+
attr_accessor :latest_message
|
19572
|
+
|
19573
|
+
def initialize(**args)
|
19574
|
+
update!(**args)
|
19575
|
+
end
|
19576
|
+
|
19577
|
+
# Update properties of this object
|
19578
|
+
def update!(**args)
|
19579
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
19580
|
+
@knowledge_assist_answer = args[:knowledge_assist_answer] if args.key?(:knowledge_assist_answer)
|
19581
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
19582
|
+
end
|
19583
|
+
end
|
19584
|
+
|
19001
19585
|
# The response message for Participants.SuggestSmartReplies.
|
19002
19586
|
class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
|
19003
19587
|
include Google::Apis::Core::Hashable
|
@@ -19070,6 +19654,11 @@ module Google
|
|
19070
19654
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
|
19071
19655
|
attr_accessor :suggest_faq_answers_response
|
19072
19656
|
|
19657
|
+
# The response message for Participants.SuggestKnowledgeAssist.
|
19658
|
+
# Corresponds to the JSON property `suggestKnowledgeAssistResponse`
|
19659
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse]
|
19660
|
+
attr_accessor :suggest_knowledge_assist_response
|
19661
|
+
|
19073
19662
|
# The response message for Participants.SuggestSmartReplies.
|
19074
19663
|
# Corresponds to the JSON property `suggestSmartRepliesResponse`
|
19075
19664
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse]
|
@@ -19086,6 +19675,7 @@ module Google
|
|
19086
19675
|
@suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
|
19087
19676
|
@suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_response)
|
19088
19677
|
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
19678
|
+
@suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
|
19089
19679
|
@suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
|
19090
19680
|
end
|
19091
19681
|
end
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV2
|
18
18
|
# Version of the google-apis-dialogflow_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.90.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240607"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1222,6 +1222,24 @@ module Google
|
|
1222
1222
|
include Google::Apis::Core::JsonObjectSupport
|
1223
1223
|
end
|
1224
1224
|
|
1225
|
+
class GoogleCloudDialogflowCxV3beta1ToolCall
|
1226
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1227
|
+
|
1228
|
+
include Google::Apis::Core::JsonObjectSupport
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
class GoogleCloudDialogflowCxV3beta1ToolCallResult
|
1232
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1233
|
+
|
1234
|
+
include Google::Apis::Core::JsonObjectSupport
|
1235
|
+
end
|
1236
|
+
|
1237
|
+
class GoogleCloudDialogflowCxV3beta1ToolCallResultError
|
1238
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1239
|
+
|
1240
|
+
include Google::Apis::Core::JsonObjectSupport
|
1241
|
+
end
|
1242
|
+
|
1225
1243
|
class GoogleCloudDialogflowCxV3beta1TransitionRoute
|
1226
1244
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1227
1245
|
|
@@ -1318,6 +1336,12 @@ module Google
|
|
1318
1336
|
include Google::Apis::Core::JsonObjectSupport
|
1319
1337
|
end
|
1320
1338
|
|
1339
|
+
class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback
|
1340
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1341
|
+
|
1342
|
+
include Google::Apis::Core::JsonObjectSupport
|
1343
|
+
end
|
1344
|
+
|
1321
1345
|
class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback
|
1322
1346
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1323
1347
|
|
@@ -2170,6 +2194,42 @@ module Google
|
|
2170
2194
|
include Google::Apis::Core::JsonObjectSupport
|
2171
2195
|
end
|
2172
2196
|
|
2197
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswer
|
2198
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2199
|
+
|
2200
|
+
include Google::Apis::Core::JsonObjectSupport
|
2201
|
+
end
|
2202
|
+
|
2203
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer
|
2204
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2205
|
+
|
2206
|
+
include Google::Apis::Core::JsonObjectSupport
|
2207
|
+
end
|
2208
|
+
|
2209
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource
|
2210
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2211
|
+
|
2212
|
+
include Google::Apis::Core::JsonObjectSupport
|
2213
|
+
end
|
2214
|
+
|
2215
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
|
2216
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2217
|
+
|
2218
|
+
include Google::Apis::Core::JsonObjectSupport
|
2219
|
+
end
|
2220
|
+
|
2221
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
|
2222
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2223
|
+
|
2224
|
+
include Google::Apis::Core::JsonObjectSupport
|
2225
|
+
end
|
2226
|
+
|
2227
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery
|
2228
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2229
|
+
|
2230
|
+
include Google::Apis::Core::JsonObjectSupport
|
2231
|
+
end
|
2232
|
+
|
2173
2233
|
class GoogleCloudDialogflowV2KnowledgeBase
|
2174
2234
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2175
2235
|
|
@@ -2512,6 +2572,18 @@ module Google
|
|
2512
2572
|
include Google::Apis::Core::JsonObjectSupport
|
2513
2573
|
end
|
2514
2574
|
|
2575
|
+
class GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest
|
2576
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2577
|
+
|
2578
|
+
include Google::Apis::Core::JsonObjectSupport
|
2579
|
+
end
|
2580
|
+
|
2581
|
+
class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
|
2582
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2583
|
+
|
2584
|
+
include Google::Apis::Core::JsonObjectSupport
|
2585
|
+
end
|
2586
|
+
|
2515
2587
|
class GoogleCloudDialogflowV2SuggestSmartRepliesRequest
|
2516
2588
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2517
2589
|
|
@@ -3046,6 +3118,42 @@ module Google
|
|
3046
3118
|
include Google::Apis::Core::JsonObjectSupport
|
3047
3119
|
end
|
3048
3120
|
|
3121
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
|
3122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3123
|
+
|
3124
|
+
include Google::Apis::Core::JsonObjectSupport
|
3125
|
+
end
|
3126
|
+
|
3127
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer
|
3128
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3129
|
+
|
3130
|
+
include Google::Apis::Core::JsonObjectSupport
|
3131
|
+
end
|
3132
|
+
|
3133
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource
|
3134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3135
|
+
|
3136
|
+
include Google::Apis::Core::JsonObjectSupport
|
3137
|
+
end
|
3138
|
+
|
3139
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
|
3140
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3141
|
+
|
3142
|
+
include Google::Apis::Core::JsonObjectSupport
|
3143
|
+
end
|
3144
|
+
|
3145
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
|
3146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3147
|
+
|
3148
|
+
include Google::Apis::Core::JsonObjectSupport
|
3149
|
+
end
|
3150
|
+
|
3151
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery
|
3152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3153
|
+
|
3154
|
+
include Google::Apis::Core::JsonObjectSupport
|
3155
|
+
end
|
3156
|
+
|
3049
3157
|
class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
|
3050
3158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3051
3159
|
|
@@ -3124,6 +3232,12 @@ module Google
|
|
3124
3232
|
include Google::Apis::Core::JsonObjectSupport
|
3125
3233
|
end
|
3126
3234
|
|
3235
|
+
class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse
|
3236
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3237
|
+
|
3238
|
+
include Google::Apis::Core::JsonObjectSupport
|
3239
|
+
end
|
3240
|
+
|
3127
3241
|
class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
|
3128
3242
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3129
3243
|
|
@@ -4953,6 +5067,8 @@ module Google
|
|
4953
5067
|
property :language_code, as: 'languageCode'
|
4954
5068
|
property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TextInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TextInput::Representation
|
4955
5069
|
|
5070
|
+
property :tool_call_result, as: 'toolCallResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResult::Representation
|
5071
|
+
|
4956
5072
|
end
|
4957
5073
|
end
|
4958
5074
|
|
@@ -4987,6 +5103,8 @@ module Google
|
|
4987
5103
|
|
4988
5104
|
property :text, as: 'text', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessageText, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessageText::Representation
|
4989
5105
|
|
5106
|
+
property :tool_call, as: 'toolCall', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCall, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCall::Representation
|
5107
|
+
|
4990
5108
|
end
|
4991
5109
|
end
|
4992
5110
|
|
@@ -5176,6 +5294,33 @@ module Google
|
|
5176
5294
|
end
|
5177
5295
|
end
|
5178
5296
|
|
5297
|
+
class GoogleCloudDialogflowCxV3beta1ToolCall
|
5298
|
+
# @private
|
5299
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5300
|
+
property :action, as: 'action'
|
5301
|
+
hash :input_parameters, as: 'inputParameters'
|
5302
|
+
property :tool, as: 'tool'
|
5303
|
+
end
|
5304
|
+
end
|
5305
|
+
|
5306
|
+
class GoogleCloudDialogflowCxV3beta1ToolCallResult
|
5307
|
+
# @private
|
5308
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5309
|
+
property :action, as: 'action'
|
5310
|
+
property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResultError, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ToolCallResultError::Representation
|
5311
|
+
|
5312
|
+
hash :output_parameters, as: 'outputParameters'
|
5313
|
+
property :tool, as: 'tool'
|
5314
|
+
end
|
5315
|
+
end
|
5316
|
+
|
5317
|
+
class GoogleCloudDialogflowCxV3beta1ToolCallResultError
|
5318
|
+
# @private
|
5319
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5320
|
+
property :message, as: 'message'
|
5321
|
+
end
|
5322
|
+
end
|
5323
|
+
|
5179
5324
|
class GoogleCloudDialogflowCxV3beta1TransitionRoute
|
5180
5325
|
# @private
|
5181
5326
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5375,6 +5520,8 @@ module Google
|
|
5375
5520
|
property :answer_relevance, as: 'answerRelevance'
|
5376
5521
|
property :document_correctness, as: 'documentCorrectness'
|
5377
5522
|
property :document_efficiency, as: 'documentEfficiency'
|
5523
|
+
property :knowledge_assist_feedback, as: 'knowledgeAssistFeedback', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback::Representation
|
5524
|
+
|
5378
5525
|
property :knowledge_search_feedback, as: 'knowledgeSearchFeedback', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback::Representation
|
5379
5526
|
|
5380
5527
|
property :summarization_feedback, as: 'summarizationFeedback', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback::Representation
|
@@ -5382,6 +5529,14 @@ module Google
|
|
5382
5529
|
end
|
5383
5530
|
end
|
5384
5531
|
|
5532
|
+
class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeAssistFeedback
|
5533
|
+
# @private
|
5534
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5535
|
+
property :answer_copied, as: 'answerCopied'
|
5536
|
+
collection :clicked_uris, as: 'clickedUris'
|
5537
|
+
end
|
5538
|
+
end
|
5539
|
+
|
5385
5540
|
class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback
|
5386
5541
|
# @private
|
5387
5542
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6225,6 +6380,7 @@ module Google
|
|
6225
6380
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig
|
6226
6381
|
# @private
|
6227
6382
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6383
|
+
property :disable_high_latency_features_sync_delivery, as: 'disableHighLatencyFeaturesSyncDelivery'
|
6228
6384
|
collection :feature_configs, as: 'featureConfigs', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig::Representation
|
6229
6385
|
|
6230
6386
|
collection :generators, as: 'generators'
|
@@ -6242,6 +6398,8 @@ module Google
|
|
6242
6398
|
property :disable_agent_query_logging, as: 'disableAgentQueryLogging'
|
6243
6399
|
property :enable_conversation_augmented_query, as: 'enableConversationAugmentedQuery'
|
6244
6400
|
property :enable_event_based_suggestion, as: 'enableEventBasedSuggestion'
|
6401
|
+
property :enable_query_suggestion_only, as: 'enableQuerySuggestionOnly'
|
6402
|
+
property :enable_query_suggestion_when_no_answer, as: 'enableQuerySuggestionWhenNoAnswer'
|
6245
6403
|
property :query_config, as: 'queryConfig', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig::Representation
|
6246
6404
|
|
6247
6405
|
property :suggestion_feature, as: 'suggestionFeature', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionFeature, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionFeature::Representation
|
@@ -6844,6 +7002,59 @@ module Google
|
|
6844
7002
|
end
|
6845
7003
|
end
|
6846
7004
|
|
7005
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswer
|
7006
|
+
# @private
|
7007
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7008
|
+
property :answer_record, as: 'answerRecord'
|
7009
|
+
property :suggested_query, as: 'suggestedQuery', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery::Representation
|
7010
|
+
|
7011
|
+
property :suggested_query_answer, as: 'suggestedQueryAnswer', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer::Representation
|
7012
|
+
|
7013
|
+
end
|
7014
|
+
end
|
7015
|
+
|
7016
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer
|
7017
|
+
# @private
|
7018
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7019
|
+
property :answer_text, as: 'answerText'
|
7020
|
+
property :faq_source, as: 'faqSource', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource::Representation
|
7021
|
+
|
7022
|
+
property :generative_source, as: 'generativeSource', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource::Representation
|
7023
|
+
|
7024
|
+
end
|
7025
|
+
end
|
7026
|
+
|
7027
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource
|
7028
|
+
# @private
|
7029
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7030
|
+
property :question, as: 'question'
|
7031
|
+
end
|
7032
|
+
end
|
7033
|
+
|
7034
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
|
7035
|
+
# @private
|
7036
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7037
|
+
collection :snippets, as: 'snippets', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet::Representation
|
7038
|
+
|
7039
|
+
end
|
7040
|
+
end
|
7041
|
+
|
7042
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
|
7043
|
+
# @private
|
7044
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7045
|
+
property :text, as: 'text'
|
7046
|
+
property :title, as: 'title'
|
7047
|
+
property :uri, as: 'uri'
|
7048
|
+
end
|
7049
|
+
end
|
7050
|
+
|
7051
|
+
class GoogleCloudDialogflowV2KnowledgeAssistAnswerSuggestedQuery
|
7052
|
+
# @private
|
7053
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7054
|
+
property :query_text, as: 'queryText'
|
7055
|
+
end
|
7056
|
+
end
|
7057
|
+
|
6847
7058
|
class GoogleCloudDialogflowV2KnowledgeBase
|
6848
7059
|
# @private
|
6849
7060
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7404,6 +7615,25 @@ module Google
|
|
7404
7615
|
end
|
7405
7616
|
end
|
7406
7617
|
|
7618
|
+
class GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest
|
7619
|
+
# @private
|
7620
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7621
|
+
property :context_size, as: 'contextSize'
|
7622
|
+
property :latest_message, as: 'latestMessage'
|
7623
|
+
property :previous_suggested_query, as: 'previousSuggestedQuery'
|
7624
|
+
end
|
7625
|
+
end
|
7626
|
+
|
7627
|
+
class GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
|
7628
|
+
# @private
|
7629
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7630
|
+
property :context_size, as: 'contextSize'
|
7631
|
+
property :knowledge_assist_answer, as: 'knowledgeAssistAnswer', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswer::Representation
|
7632
|
+
|
7633
|
+
property :latest_message, as: 'latestMessage'
|
7634
|
+
end
|
7635
|
+
end
|
7636
|
+
|
7407
7637
|
class GoogleCloudDialogflowV2SuggestSmartRepliesRequest
|
7408
7638
|
# @private
|
7409
7639
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7447,6 +7677,8 @@ module Google
|
|
7447
7677
|
|
7448
7678
|
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse::Representation
|
7449
7679
|
|
7680
|
+
property :suggest_knowledge_assist_response, as: 'suggestKnowledgeAssistResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse::Representation
|
7681
|
+
|
7450
7682
|
property :suggest_smart_replies_response, as: 'suggestSmartRepliesResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse::Representation
|
7451
7683
|
|
7452
7684
|
end
|
@@ -8299,6 +8531,59 @@ module Google
|
|
8299
8531
|
end
|
8300
8532
|
end
|
8301
8533
|
|
8534
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
|
8535
|
+
# @private
|
8536
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8537
|
+
property :answer_record, as: 'answerRecord'
|
8538
|
+
property :suggested_query, as: 'suggestedQuery', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery::Representation
|
8539
|
+
|
8540
|
+
property :suggested_query_answer, as: 'suggestedQueryAnswer', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer::Representation
|
8541
|
+
|
8542
|
+
end
|
8543
|
+
end
|
8544
|
+
|
8545
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer
|
8546
|
+
# @private
|
8547
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8548
|
+
property :answer_text, as: 'answerText'
|
8549
|
+
property :faq_source, as: 'faqSource', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource::Representation
|
8550
|
+
|
8551
|
+
property :generative_source, as: 'generativeSource', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource::Representation
|
8552
|
+
|
8553
|
+
end
|
8554
|
+
end
|
8555
|
+
|
8556
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource
|
8557
|
+
# @private
|
8558
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8559
|
+
property :question, as: 'question'
|
8560
|
+
end
|
8561
|
+
end
|
8562
|
+
|
8563
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
|
8564
|
+
# @private
|
8565
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8566
|
+
collection :snippets, as: 'snippets', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet::Representation
|
8567
|
+
|
8568
|
+
end
|
8569
|
+
end
|
8570
|
+
|
8571
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSourceSnippet
|
8572
|
+
# @private
|
8573
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8574
|
+
property :text, as: 'text'
|
8575
|
+
property :title, as: 'title'
|
8576
|
+
property :uri, as: 'uri'
|
8577
|
+
end
|
8578
|
+
end
|
8579
|
+
|
8580
|
+
class GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery
|
8581
|
+
# @private
|
8582
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8583
|
+
property :query_text, as: 'queryText'
|
8584
|
+
end
|
8585
|
+
end
|
8586
|
+
|
8302
8587
|
class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
|
8303
8588
|
# @private
|
8304
8589
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8447,6 +8732,16 @@ module Google
|
|
8447
8732
|
end
|
8448
8733
|
end
|
8449
8734
|
|
8735
|
+
class GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse
|
8736
|
+
# @private
|
8737
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8738
|
+
property :context_size, as: 'contextSize'
|
8739
|
+
property :knowledge_assist_answer, as: 'knowledgeAssistAnswer', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer::Representation
|
8740
|
+
|
8741
|
+
property :latest_message, as: 'latestMessage'
|
8742
|
+
end
|
8743
|
+
end
|
8744
|
+
|
8450
8745
|
class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
|
8451
8746
|
# @private
|
8452
8747
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8470,6 +8765,8 @@ module Google
|
|
8470
8765
|
|
8471
8766
|
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse::Representation
|
8472
8767
|
|
8768
|
+
property :suggest_knowledge_assist_response, as: 'suggestKnowledgeAssistResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse::Representation
|
8769
|
+
|
8473
8770
|
property :suggest_smart_replies_response, as: 'suggestSmartRepliesResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse::Representation
|
8474
8771
|
|
8475
8772
|
end
|
@@ -4204,6 +4204,40 @@ module Google
|
|
4204
4204
|
execute_or_queue_command(command, &block)
|
4205
4205
|
end
|
4206
4206
|
|
4207
|
+
# Gets knowledge assist suggestions based on historical messages.
|
4208
|
+
# @param [String] parent
|
4209
|
+
# Required. The name of the participant to fetch suggestions for. Format: `
|
4210
|
+
# projects//locations//conversations//participants/`.
|
4211
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest] google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object
|
4212
|
+
# @param [String] fields
|
4213
|
+
# Selector specifying which fields to include in a partial response.
|
4214
|
+
# @param [String] quota_user
|
4215
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4216
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4217
|
+
# @param [Google::Apis::RequestOptions] options
|
4218
|
+
# Request-specific options
|
4219
|
+
#
|
4220
|
+
# @yield [result, err] Result & error if block supplied
|
4221
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse] parsed result object
|
4222
|
+
# @yieldparam err [StandardError] error object if request failed
|
4223
|
+
#
|
4224
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse]
|
4225
|
+
#
|
4226
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4227
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4228
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4229
|
+
def suggest_project_conversation_participant_suggestion_knowledge_assist(parent, google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4230
|
+
command = make_simple_command(:post, 'v2/{+parent}/suggestions:suggestKnowledgeAssist', options)
|
4231
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest::Representation
|
4232
|
+
command.request_object = google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object
|
4233
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse::Representation
|
4234
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
|
4235
|
+
command.params['parent'] = parent unless parent.nil?
|
4236
|
+
command.query['fields'] = fields unless fields.nil?
|
4237
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4238
|
+
execute_or_queue_command(command, &block)
|
4239
|
+
end
|
4240
|
+
|
4207
4241
|
# Gets smart replies for a participant based on specific historical messages.
|
4208
4242
|
# @param [String] parent
|
4209
4243
|
# Required. The name of the participant to fetch suggestion for. Format: `
|
@@ -8798,6 +8832,40 @@ module Google
|
|
8798
8832
|
execute_or_queue_command(command, &block)
|
8799
8833
|
end
|
8800
8834
|
|
8835
|
+
# Gets knowledge assist suggestions based on historical messages.
|
8836
|
+
# @param [String] parent
|
8837
|
+
# Required. The name of the participant to fetch suggestions for. Format: `
|
8838
|
+
# projects//locations//conversations//participants/`.
|
8839
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest] google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object
|
8840
|
+
# @param [String] fields
|
8841
|
+
# Selector specifying which fields to include in a partial response.
|
8842
|
+
# @param [String] quota_user
|
8843
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8844
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8845
|
+
# @param [Google::Apis::RequestOptions] options
|
8846
|
+
# Request-specific options
|
8847
|
+
#
|
8848
|
+
# @yield [result, err] Result & error if block supplied
|
8849
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse] parsed result object
|
8850
|
+
# @yieldparam err [StandardError] error object if request failed
|
8851
|
+
#
|
8852
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse]
|
8853
|
+
#
|
8854
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8855
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8856
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8857
|
+
def suggest_project_location_conversation_participant_suggestion_knowledge_assist(parent, google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
8858
|
+
command = make_simple_command(:post, 'v2/{+parent}/suggestions:suggestKnowledgeAssist', options)
|
8859
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistRequest::Representation
|
8860
|
+
command.request_object = google_cloud_dialogflow_v2_suggest_knowledge_assist_request_object
|
8861
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse::Representation
|
8862
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse
|
8863
|
+
command.params['parent'] = parent unless parent.nil?
|
8864
|
+
command.query['fields'] = fields unless fields.nil?
|
8865
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8866
|
+
execute_or_queue_command(command, &block)
|
8867
|
+
end
|
8868
|
+
|
8801
8869
|
# Gets smart replies for a participant based on specific historical messages.
|
8802
8870
|
# @param [String] parent
|
8803
8871
|
# Required. The name of the participant to fetch suggestion for. Format: `
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.90.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.90.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|