google-cloud-dialogflow-v2 0.11.5 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +8 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +12 -5
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +3 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +122 -29
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a9f0ad38ea4ab150fca99037912d53e19cf459dd572ae984836b06369631f68
|
4
|
+
data.tar.gz: 4b1ee57d4570b8dc2002452fbf1d3504bb870129fcc5f52474152a8aa0199222
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90ef2740177423fbe5952af457da66366eb1c06d010077cdd18ae824310cf7729fab2f0e2b8cc9aca00185f4c49d2a996dadba96d7d3dc0a0fe496e66fb31460
|
7
|
+
data.tar.gz: 9005e2d86e254d129c7d7b7bdfce41059f01c291362a9269b53e30114d1011470b27be4a2f079d0f3ac217d4d6f5791f03390226ab8d73a5ea01c5fb7ba4ac44
|
@@ -21,6 +21,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
21
21
|
optional :name, :string, 1
|
22
22
|
optional :role, :enum, 2, "google.cloud.dialogflow.v2.Participant.Role"
|
23
23
|
optional :sip_recording_media_label, :string, 6
|
24
|
+
map :documents_metadata_filters, :string, :string, 8
|
24
25
|
end
|
25
26
|
add_enum "google.cloud.dialogflow.v2.Participant.Role" do
|
26
27
|
value :ROLE_UNSPECIFIED, 0
|
@@ -61,6 +62,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
61
62
|
optional :participant, :string, 1
|
62
63
|
optional :reply_audio_config, :message, 5, "google.cloud.dialogflow.v2.OutputAudioConfig"
|
63
64
|
optional :query_params, :message, 9, "google.cloud.dialogflow.v2.QueryParameters"
|
65
|
+
optional :assist_query_params, :message, 14, "google.cloud.dialogflow.v2.AssistQueryParameters"
|
64
66
|
optional :request_id, :string, 11
|
65
67
|
oneof :input do
|
66
68
|
optional :text_input, :message, 6, "google.cloud.dialogflow.v2.TextInput"
|
@@ -83,6 +85,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
85
|
optional :parent, :string, 1
|
84
86
|
optional :latest_message, :string, 2
|
85
87
|
optional :context_size, :int32, 3
|
88
|
+
optional :assist_query_params, :message, 4, "google.cloud.dialogflow.v2.AssistQueryParameters"
|
86
89
|
end
|
87
90
|
add_message "google.cloud.dialogflow.v2.SuggestArticlesResponse" do
|
88
91
|
repeated :article_answers, :message, 1, "google.cloud.dialogflow.v2.ArticleAnswer"
|
@@ -93,6 +96,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
93
96
|
optional :parent, :string, 1
|
94
97
|
optional :latest_message, :string, 2
|
95
98
|
optional :context_size, :int32, 3
|
99
|
+
optional :assist_query_params, :message, 4, "google.cloud.dialogflow.v2.AssistQueryParameters"
|
96
100
|
end
|
97
101
|
add_message "google.cloud.dialogflow.v2.SuggestFaqAnswersResponse" do
|
98
102
|
repeated :faq_answers, :message, 1, "google.cloud.dialogflow.v2.FaqAnswer"
|
@@ -145,6 +149,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
145
149
|
repeated :parts, :message, 1, "google.cloud.dialogflow.v2.AnnotatedMessagePart"
|
146
150
|
optional :contain_entities, :bool, 2
|
147
151
|
end
|
152
|
+
add_message "google.cloud.dialogflow.v2.AssistQueryParameters" do
|
153
|
+
map :documents_metadata_filters, :string, :string, 1
|
154
|
+
end
|
148
155
|
end
|
149
156
|
end
|
150
157
|
|
@@ -175,6 +182,7 @@ module Google
|
|
175
182
|
SuggestionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.SuggestionResult").msgclass
|
176
183
|
AnnotatedMessagePart = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AnnotatedMessagePart").msgclass
|
177
184
|
MessageAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.MessageAnnotation").msgclass
|
185
|
+
AssistQueryParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.AssistQueryParameters").msgclass
|
178
186
|
end
|
179
187
|
end
|
180
188
|
end
|
@@ -534,7 +534,7 @@ module Google
|
|
534
534
|
# @param options [::Gapic::CallOptions, ::Hash]
|
535
535
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
536
536
|
#
|
537
|
-
# @overload analyze_content(participant: nil, text_input: nil, event_input: nil, reply_audio_config: nil, query_params: nil, request_id: nil)
|
537
|
+
# @overload analyze_content(participant: nil, text_input: nil, event_input: nil, reply_audio_config: nil, query_params: nil, assist_query_params: nil, request_id: nil)
|
538
538
|
# Pass arguments to `analyze_content` via keyword arguments. Note that at
|
539
539
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
540
540
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -555,6 +555,8 @@ module Google
|
|
555
555
|
# is disabled.
|
556
556
|
# @param query_params [::Google::Cloud::Dialogflow::V2::QueryParameters, ::Hash]
|
557
557
|
# Parameters for a Dialogflow virtual-agent query.
|
558
|
+
# @param assist_query_params [::Google::Cloud::Dialogflow::V2::AssistQueryParameters, ::Hash]
|
559
|
+
# Parameters for a human assist query.
|
558
560
|
# @param request_id [::String]
|
559
561
|
# A unique identifier for this request. Restricted to 36 ASCII characters.
|
560
562
|
# A random UUID is recommended.
|
@@ -638,7 +640,7 @@ module Google
|
|
638
640
|
# @param options [::Gapic::CallOptions, ::Hash]
|
639
641
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
640
642
|
#
|
641
|
-
# @overload suggest_articles(parent: nil, latest_message: nil, context_size: nil)
|
643
|
+
# @overload suggest_articles(parent: nil, latest_message: nil, context_size: nil, assist_query_params: nil)
|
642
644
|
# Pass arguments to `suggest_articles` via keyword arguments. Note that at
|
643
645
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
644
646
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -655,8 +657,11 @@ module Google
|
|
655
657
|
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
656
658
|
# @param context_size [::Integer]
|
657
659
|
# Max number of messages prior to and including
|
658
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message}
|
659
|
-
# when compiling the suggestion. By default 20 and at
|
660
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message}
|
661
|
+
# to use as context when compiling the suggestion. By default 20 and at
|
662
|
+
# most 50.
|
663
|
+
# @param assist_query_params [::Google::Cloud::Dialogflow::V2::AssistQueryParameters, ::Hash]
|
664
|
+
# Parameters for a human assist query.
|
660
665
|
#
|
661
666
|
# @yield [response, operation] Access the result along with the RPC operation
|
662
667
|
# @yieldparam response [::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse]
|
@@ -736,7 +741,7 @@ module Google
|
|
736
741
|
# @param options [::Gapic::CallOptions, ::Hash]
|
737
742
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
738
743
|
#
|
739
|
-
# @overload suggest_faq_answers(parent: nil, latest_message: nil, context_size: nil)
|
744
|
+
# @overload suggest_faq_answers(parent: nil, latest_message: nil, context_size: nil, assist_query_params: nil)
|
740
745
|
# Pass arguments to `suggest_faq_answers` via keyword arguments. Note that at
|
741
746
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
742
747
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -755,6 +760,8 @@ module Google
|
|
755
760
|
# Max number of messages prior to and including
|
756
761
|
# [latest_message] to use as context when compiling the
|
757
762
|
# suggestion. By default 20 and at most 50.
|
763
|
+
# @param assist_query_params [::Google::Cloud::Dialogflow::V2::AssistQueryParameters, ::Hash]
|
764
|
+
# Parameters for a human assist query.
|
758
765
|
#
|
759
766
|
# @yield [response, operation] Access the result along with the RPC operation
|
760
767
|
# @yieldparam response [::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse]
|
@@ -29,17 +29,45 @@ module Google
|
|
29
29
|
# ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
|
30
30
|
# @!attribute [rw] role
|
31
31
|
# @return [::Google::Cloud::Dialogflow::V2::Participant::Role]
|
32
|
-
# Immutable. The role this participant plays in the conversation. This field
|
33
|
-
# during participant creation and is then immutable.
|
32
|
+
# Immutable. The role this participant plays in the conversation. This field
|
33
|
+
# must be set during participant creation and is then immutable.
|
34
34
|
# @!attribute [rw] sip_recording_media_label
|
35
35
|
# @return [::String]
|
36
36
|
# Optional. Label applied to streams representing this participant in SIPREC
|
37
37
|
# XML metadata and SDP. This is used to assign transcriptions from that
|
38
38
|
# media stream to this participant. This field can be updated.
|
39
|
+
# @!attribute [rw] documents_metadata_filters
|
40
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
41
|
+
# Optional. Key-value filters on the metadata of documents returned by
|
42
|
+
# article suggestion. If specified, article suggestion only returns suggested
|
43
|
+
# documents that match all filters in their
|
44
|
+
# {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
|
45
|
+
# values for a metadata key should be concatenated by comma. For example,
|
46
|
+
# filters to match all documents that have 'US' or 'CA' in their market
|
47
|
+
# metadata values and 'agent' in their user metadata values will be
|
48
|
+
# ```
|
49
|
+
# documents_metadata_filters {
|
50
|
+
# key: "market"
|
51
|
+
# value: "US,CA"
|
52
|
+
# }
|
53
|
+
# documents_metadata_filters {
|
54
|
+
# key: "user"
|
55
|
+
# value: "agent"
|
56
|
+
# }
|
57
|
+
# ```
|
39
58
|
class Participant
|
40
59
|
include ::Google::Protobuf::MessageExts
|
41
60
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
61
|
|
62
|
+
# @!attribute [rw] key
|
63
|
+
# @return [::String]
|
64
|
+
# @!attribute [rw] value
|
65
|
+
# @return [::String]
|
66
|
+
class DocumentsMetadataFiltersEntry
|
67
|
+
include ::Google::Protobuf::MessageExts
|
68
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
69
|
+
end
|
70
|
+
|
43
71
|
# Enumeration of the roles a participant can play in a conversation.
|
44
72
|
module Role
|
45
73
|
# Participant role not set.
|
@@ -88,7 +116,8 @@ module Google
|
|
88
116
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
89
117
|
end
|
90
118
|
|
91
|
-
# The request message for
|
119
|
+
# The request message for
|
120
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#create_participant Participants.CreateParticipant}.
|
92
121
|
# @!attribute [rw] parent
|
93
122
|
# @return [::String]
|
94
123
|
# Required. Resource identifier of the conversation adding the participant.
|
@@ -102,7 +131,8 @@ module Google
|
|
102
131
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
132
|
end
|
104
133
|
|
105
|
-
# The request message for
|
134
|
+
# The request message for
|
135
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#get_participant Participants.GetParticipant}.
|
106
136
|
# @!attribute [rw] name
|
107
137
|
# @return [::String]
|
108
138
|
# Required. The name of the participant. Format:
|
@@ -113,7 +143,8 @@ module Google
|
|
113
143
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
114
144
|
end
|
115
145
|
|
116
|
-
# The request message for
|
146
|
+
# The request message for
|
147
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
|
117
148
|
# @!attribute [rw] parent
|
118
149
|
# @return [::String]
|
119
150
|
# Required. The conversation to list all participants from.
|
@@ -131,7 +162,8 @@ module Google
|
|
131
162
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
163
|
end
|
133
164
|
|
134
|
-
# The response message for
|
165
|
+
# The response message for
|
166
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
|
135
167
|
# @!attribute [rw] participants
|
136
168
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::Participant>]
|
137
169
|
# The list of participants. There is a maximum number of items
|
@@ -145,7 +177,8 @@ module Google
|
|
145
177
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
178
|
end
|
147
179
|
|
148
|
-
# The request message for
|
180
|
+
# The request message for
|
181
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#update_participant Participants.UpdateParticipant}.
|
149
182
|
# @!attribute [rw] participant
|
150
183
|
# @return [::Google::Cloud::Dialogflow::V2::Participant]
|
151
184
|
# Required. The participant to update.
|
@@ -157,7 +190,8 @@ module Google
|
|
157
190
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
158
191
|
end
|
159
192
|
|
160
|
-
# The request message for
|
193
|
+
# The request message for
|
194
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
|
161
195
|
# @!attribute [rw] participant
|
162
196
|
# @return [::String]
|
163
197
|
# Required. The name of the participant this text comes from.
|
@@ -179,6 +213,9 @@ module Google
|
|
179
213
|
# @!attribute [rw] query_params
|
180
214
|
# @return [::Google::Cloud::Dialogflow::V2::QueryParameters]
|
181
215
|
# Parameters for a Dialogflow virtual-agent query.
|
216
|
+
# @!attribute [rw] assist_query_params
|
217
|
+
# @return [::Google::Cloud::Dialogflow::V2::AssistQueryParameters]
|
218
|
+
# Parameters for a human assist query.
|
182
219
|
# @!attribute [rw] request_id
|
183
220
|
# @return [::String]
|
184
221
|
# A unique identifier for this request. Restricted to 36 ASCII characters.
|
@@ -198,7 +235,8 @@ module Google
|
|
198
235
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
199
236
|
end
|
200
237
|
|
201
|
-
# The response message for
|
238
|
+
# The response message for
|
239
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
|
202
240
|
# @!attribute [rw] reply_text
|
203
241
|
# @return [::String]
|
204
242
|
# The output text content.
|
@@ -222,19 +260,23 @@ module Google
|
|
222
260
|
# Only set if a Dialogflow automated agent has responded.
|
223
261
|
# Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
|
224
262
|
# and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
|
225
|
-
# are always empty, use
|
263
|
+
# are always empty, use
|
264
|
+
# {::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse#reply_audio reply_audio}
|
265
|
+
# instead.
|
226
266
|
# @!attribute [rw] message
|
227
267
|
# @return [::Google::Cloud::Dialogflow::V2::Message]
|
228
268
|
# Message analyzed by CCAI.
|
229
269
|
# @!attribute [rw] human_agent_suggestion_results
|
230
270
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
|
231
271
|
# The suggestions for most recent human agent. The order is the same as
|
232
|
-
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
|
272
|
+
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
|
273
|
+
# of
|
233
274
|
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#human_agent_suggestion_config HumanAgentAssistantConfig.human_agent_suggestion_config}.
|
234
275
|
# @!attribute [rw] end_user_suggestion_results
|
235
276
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
|
236
277
|
# The suggestions for end user. The order is the same as
|
237
|
-
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
|
278
|
+
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
|
279
|
+
# of
|
238
280
|
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#end_user_suggestion_config HumanAgentAssistantConfig.end_user_suggestion_config}.
|
239
281
|
# @!attribute [rw] dtmf_parameters
|
240
282
|
# @return [::Google::Cloud::Dialogflow::V2::DtmfParameters]
|
@@ -244,7 +286,8 @@ module Google
|
|
244
286
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
287
|
end
|
246
288
|
|
247
|
-
# The request message for
|
289
|
+
# The request message for
|
290
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
|
248
291
|
# @!attribute [rw] parent
|
249
292
|
# @return [::String]
|
250
293
|
# Required. The name of the participant to fetch suggestion for.
|
@@ -260,14 +303,19 @@ module Google
|
|
260
303
|
# @!attribute [rw] context_size
|
261
304
|
# @return [::Integer]
|
262
305
|
# Max number of messages prior to and including
|
263
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message}
|
264
|
-
# when compiling the suggestion. By default 20 and at
|
306
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message}
|
307
|
+
# to use as context when compiling the suggestion. By default 20 and at
|
308
|
+
# most 50.
|
309
|
+
# @!attribute [rw] assist_query_params
|
310
|
+
# @return [::Google::Cloud::Dialogflow::V2::AssistQueryParameters]
|
311
|
+
# Parameters for a human assist query.
|
265
312
|
class SuggestArticlesRequest
|
266
313
|
include ::Google::Protobuf::MessageExts
|
267
314
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
268
315
|
end
|
269
316
|
|
270
|
-
# The response message for
|
317
|
+
# The response message for
|
318
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
|
271
319
|
# @!attribute [rw] article_answers
|
272
320
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::ArticleAnswer>]
|
273
321
|
# Articles ordered by score in descending order.
|
@@ -281,16 +329,18 @@ module Google
|
|
281
329
|
# @!attribute [rw] context_size
|
282
330
|
# @return [::Integer]
|
283
331
|
# Number of messages prior to and including
|
284
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse#latest_message latest_message}
|
285
|
-
# suggestion. It may be smaller than the
|
286
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#context_size SuggestArticlesRequest.context_size}
|
287
|
-
# aren't that many messages in the
|
332
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse#latest_message latest_message}
|
333
|
+
# to compile the suggestion. It may be smaller than the
|
334
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#context_size SuggestArticlesRequest.context_size}
|
335
|
+
# field in the request if there aren't that many messages in the
|
336
|
+
# conversation.
|
288
337
|
class SuggestArticlesResponse
|
289
338
|
include ::Google::Protobuf::MessageExts
|
290
339
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
291
340
|
end
|
292
341
|
|
293
|
-
# The request message for
|
342
|
+
# The request message for
|
343
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
|
294
344
|
# @!attribute [rw] parent
|
295
345
|
# @return [::String]
|
296
346
|
# Required. The name of the participant to fetch suggestion for.
|
@@ -308,12 +358,16 @@ module Google
|
|
308
358
|
# Max number of messages prior to and including
|
309
359
|
# [latest_message] to use as context when compiling the
|
310
360
|
# suggestion. By default 20 and at most 50.
|
361
|
+
# @!attribute [rw] assist_query_params
|
362
|
+
# @return [::Google::Cloud::Dialogflow::V2::AssistQueryParameters]
|
363
|
+
# Parameters for a human assist query.
|
311
364
|
class SuggestFaqAnswersRequest
|
312
365
|
include ::Google::Protobuf::MessageExts
|
313
366
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
314
367
|
end
|
315
368
|
|
316
|
-
# The request message for
|
369
|
+
# The request message for
|
370
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
|
317
371
|
# @!attribute [rw] faq_answers
|
318
372
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::FaqAnswer>]
|
319
373
|
# Answers extracted from FAQ documents.
|
@@ -327,10 +381,11 @@ module Google
|
|
327
381
|
# @!attribute [rw] context_size
|
328
382
|
# @return [::Integer]
|
329
383
|
# Number of messages prior to and including
|
330
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse#latest_message latest_message}
|
331
|
-
# suggestion. It may be smaller than the
|
332
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest#context_size SuggestFaqAnswersRequest.context_size}
|
333
|
-
# aren't that many messages in the
|
384
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse#latest_message latest_message}
|
385
|
+
# to compile the suggestion. It may be smaller than the
|
386
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest#context_size SuggestFaqAnswersRequest.context_size}
|
387
|
+
# field in the request if there aren't that many messages in the
|
388
|
+
# conversation.
|
334
389
|
class SuggestFaqAnswersResponse
|
335
390
|
include ::Google::Protobuf::MessageExts
|
336
391
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -352,7 +407,9 @@ module Google
|
|
352
407
|
# Represents a response from an automated agent.
|
353
408
|
# @!attribute [rw] detect_intent_response
|
354
409
|
# @return [::Google::Cloud::Dialogflow::V2::DetectIntentResponse]
|
355
|
-
# Response of the Dialogflow
|
410
|
+
# Response of the Dialogflow
|
411
|
+
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent Sessions.DetectIntent}
|
412
|
+
# call.
|
356
413
|
# @!attribute [rw] automated_agent_reply_type
|
357
414
|
# @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentReply::AutomatedAgentReplyType]
|
358
415
|
# AutomatedAgentReply type.
|
@@ -461,8 +518,12 @@ module Google
|
|
461
518
|
end
|
462
519
|
|
463
520
|
# One response of different type of suggestion response which is used in
|
464
|
-
# the response of
|
465
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}
|
521
|
+
# the response of
|
522
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}
|
523
|
+
# and
|
524
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent},
|
525
|
+
# as well as
|
526
|
+
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantEvent HumanAgentAssistantEvent}.
|
466
527
|
# @!attribute [rw] error
|
467
528
|
# @return [::Google::Rpc::Status]
|
468
529
|
# Error status if the request failed.
|
@@ -519,6 +580,38 @@ module Google
|
|
519
580
|
include ::Google::Protobuf::MessageExts
|
520
581
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
521
582
|
end
|
583
|
+
|
584
|
+
# Represents the parameters of human assist query.
|
585
|
+
# @!attribute [rw] documents_metadata_filters
|
586
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
587
|
+
# Key-value filters on the metadata of documents returned by article
|
588
|
+
# suggestion. If specified, article suggestion only returns suggested
|
589
|
+
# documents that match all filters in their
|
590
|
+
# {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
|
591
|
+
# values for a metadata key should be concatenated by comma. For example,
|
592
|
+
# filters to match all documents that have 'US' or 'CA' in their market
|
593
|
+
# metadata values and 'agent' in their user metadata values will be
|
594
|
+
# documents_metadata_filters {
|
595
|
+
# key: "market"
|
596
|
+
# value: "US,CA"
|
597
|
+
# }
|
598
|
+
# documents_metadata_filters {
|
599
|
+
# key: "user"
|
600
|
+
# value: "agent"
|
601
|
+
# }
|
602
|
+
class AssistQueryParameters
|
603
|
+
include ::Google::Protobuf::MessageExts
|
604
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
605
|
+
|
606
|
+
# @!attribute [rw] key
|
607
|
+
# @return [::String]
|
608
|
+
# @!attribute [rw] value
|
609
|
+
# @return [::String]
|
610
|
+
class DocumentsMetadataFiltersEntry
|
611
|
+
include ::Google::Protobuf::MessageExts
|
612
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
613
|
+
end
|
614
|
+
end
|
522
615
|
end
|
523
616
|
end
|
524
617
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.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: 2021-
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|