google-cloud-contact_center_insights-v1 0.13.0 → 0.14.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/contact_center_insights/v1/contact_center_insights/paths.rb +19 -0
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +25 -0
- data/proto_docs/google/api/client.rb +10 -1
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +85 -1
- 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: a0171ef1b64daedca6c39be10d220f5a9964ac40df5e77a3238cace85904b45f
|
4
|
+
data.tar.gz: 0b1fa984f9dd96695af103a9cbaf5d0efb740a454c160204975312d3ec7c41d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1fe44bd1bbd967265601f69f8e7ecbd1116551157aaf1ae0b263c1f0b3bf3be2dcb7eac64779fd5e57aa87e0b04bf35b57349c2f712f4ab58537504ce5a826d
|
7
|
+
data.tar.gz: 7021d389090c25705e02e2a44615742325d98d38e0c753dcd3800c0137a8115c893825c862bd165fe87f5367cf2fd7c18ed4f54be62eda4567310f03bdd9d397
|
@@ -64,6 +64,25 @@ module Google
|
|
64
64
|
"projects/#{project}/locations/#{location}/conversations/#{conversation}"
|
65
65
|
end
|
66
66
|
|
67
|
+
##
|
68
|
+
# Create a fully-qualified ConversationProfile resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}`
|
73
|
+
#
|
74
|
+
# @param project [String]
|
75
|
+
# @param location [String]
|
76
|
+
# @param conversation_profile [String]
|
77
|
+
#
|
78
|
+
# @return [::String]
|
79
|
+
def conversation_profile_path project:, location:, conversation_profile:
|
80
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
81
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
82
|
+
|
83
|
+
"projects/#{project}/locations/#{location}/conversationProfiles/#{conversation_profile}"
|
84
|
+
end
|
85
|
+
|
67
86
|
##
|
68
87
|
# Create a fully-qualified Issue resource string.
|
69
88
|
#
|
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
24
24
|
optional :duration, :message, 10, "google.protobuf.Duration"
|
25
25
|
optional :turn_count, :int32, 11
|
26
26
|
optional :latest_analysis, :message, 12, "google.cloud.contactcenterinsights.v1.Analysis"
|
27
|
+
optional :latest_summary, :message, 20, "google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData"
|
27
28
|
repeated :runtime_annotations, :message, 13, "google.cloud.contactcenterinsights.v1.RuntimeAnnotation"
|
28
29
|
map :dialogflow_intents, :string, :message, 18, "google.cloud.contactcenterinsights.v1.DialogflowIntent"
|
29
30
|
optional :obfuscated_user_id, :string, 21
|
@@ -306,6 +307,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
306
307
|
optional :smart_reply, :message, 8, "google.cloud.contactcenterinsights.v1.SmartReplyData"
|
307
308
|
optional :smart_compose_suggestion, :message, 9, "google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData"
|
308
309
|
optional :dialogflow_interaction, :message, 10, "google.cloud.contactcenterinsights.v1.DialogflowInteractionData"
|
310
|
+
optional :conversation_summarization_suggestion, :message, 12, "google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData"
|
309
311
|
end
|
310
312
|
end
|
311
313
|
add_message "google.cloud.contactcenterinsights.v1.AnswerFeedback" do
|
@@ -351,6 +353,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
351
353
|
optional :dialogflow_intent_id, :string, 1
|
352
354
|
optional :confidence, :float, 2
|
353
355
|
end
|
356
|
+
add_message "google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData" do
|
357
|
+
optional :text, :string, 1
|
358
|
+
map :text_sections, :string, :string, 5
|
359
|
+
optional :confidence, :float, 2
|
360
|
+
map :metadata, :string, :string, 3
|
361
|
+
optional :answer_record, :string, 4
|
362
|
+
optional :conversation_model, :string, 6
|
363
|
+
end
|
354
364
|
add_message "google.cloud.contactcenterinsights.v1.ConversationParticipant" do
|
355
365
|
optional :dialogflow_participant, :string, 1
|
356
366
|
optional :obfuscated_external_user_id, :string, 3
|
@@ -384,6 +394,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
384
394
|
optional :run_intent_annotator, :bool, 7
|
385
395
|
optional :run_issue_model_annotator, :bool, 8
|
386
396
|
repeated :issue_models, :string, 10
|
397
|
+
optional :run_summarization_annotator, :bool, 9
|
398
|
+
optional :summarization_config, :message, 11, "google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig"
|
399
|
+
end
|
400
|
+
add_message "google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig" do
|
401
|
+
oneof :model_source do
|
402
|
+
optional :conversation_profile, :string, 1
|
403
|
+
optional :summarization_model, :enum, 2, "google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel"
|
404
|
+
end
|
405
|
+
end
|
406
|
+
add_enum "google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel" do
|
407
|
+
value :SUMMARIZATION_MODEL_UNSPECIFIED, 0
|
408
|
+
value :BASELINE_MODEL, 1
|
387
409
|
end
|
388
410
|
end
|
389
411
|
end
|
@@ -447,10 +469,13 @@ module Google
|
|
447
469
|
SmartReplyData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.SmartReplyData").msgclass
|
448
470
|
SmartComposeSuggestionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData").msgclass
|
449
471
|
DialogflowInteractionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DialogflowInteractionData").msgclass
|
472
|
+
ConversationSummarizationSuggestionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData").msgclass
|
450
473
|
ConversationParticipant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant").msgclass
|
451
474
|
ConversationParticipant::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant.Role").enummodule
|
452
475
|
View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.View").msgclass
|
453
476
|
AnnotatorSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnnotatorSelector").msgclass
|
477
|
+
AnnotatorSelector::SummarizationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig").msgclass
|
478
|
+
AnnotatorSelector::SummarizationConfig::SummarizationModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel").enummodule
|
454
479
|
end
|
455
480
|
end
|
456
481
|
end
|
@@ -83,7 +83,7 @@ module Google
|
|
83
83
|
# long-running operation pattern.
|
84
84
|
# @!attribute [rw] new_issue_uri
|
85
85
|
# @return [::String]
|
86
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
87
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
88
88
|
# @!attribute [rw] documentation_uri
|
89
89
|
# @return [::String]
|
@@ -353,6 +353,15 @@ module Google
|
|
353
353
|
|
354
354
|
# Street View Org.
|
355
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
356
365
|
end
|
357
366
|
|
358
367
|
# To where should client libraries be published?
|
@@ -77,6 +77,9 @@ module Google
|
|
77
77
|
# @!attribute [r] latest_analysis
|
78
78
|
# @return [::Google::Cloud::ContactCenterInsights::V1::Analysis]
|
79
79
|
# Output only. The conversation's latest analysis, if one exists.
|
80
|
+
# @!attribute [r] latest_summary
|
81
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ConversationSummarizationSuggestionData]
|
82
|
+
# Output only. Latest summary of the conversation.
|
80
83
|
# @!attribute [r] runtime_annotations
|
81
84
|
# @return [::Array<::Google::Cloud::ContactCenterInsights::V1::RuntimeAnnotation>]
|
82
85
|
# Output only. The annotations that were generated during the customer and
|
@@ -886,7 +889,7 @@ module Google
|
|
886
889
|
# Required. The type of this phrase match rule group.
|
887
890
|
# @!attribute [rw] phrase_match_rules
|
888
891
|
# @return [::Array<::Google::Cloud::ContactCenterInsights::V1::PhraseMatchRule>]
|
889
|
-
# A list of
|
892
|
+
# A list of phrase match rules that are included in this group.
|
890
893
|
class PhraseMatchRuleGroup
|
891
894
|
include ::Google::Protobuf::MessageExts
|
892
895
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -1051,6 +1054,9 @@ module Google
|
|
1051
1054
|
# @!attribute [rw] dialogflow_interaction
|
1052
1055
|
# @return [::Google::Cloud::ContactCenterInsights::V1::DialogflowInteractionData]
|
1053
1056
|
# Dialogflow interaction data.
|
1057
|
+
# @!attribute [rw] conversation_summarization_suggestion
|
1058
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::ConversationSummarizationSuggestionData]
|
1059
|
+
# Conversation summarization suggestion data.
|
1054
1060
|
# @!attribute [rw] annotation_id
|
1055
1061
|
# @return [::String]
|
1056
1062
|
# The unique identifier of the annotation.
|
@@ -1263,6 +1269,55 @@ module Google
|
|
1263
1269
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1264
1270
|
end
|
1265
1271
|
|
1272
|
+
# Conversation summarization suggestion data.
|
1273
|
+
# @!attribute [rw] text
|
1274
|
+
# @return [::String]
|
1275
|
+
# The summarization content that is concatenated into one string.
|
1276
|
+
# @!attribute [rw] text_sections
|
1277
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1278
|
+
# The summarization content that is divided into sections. The key is the
|
1279
|
+
# section's name and the value is the section's content. There is no
|
1280
|
+
# specific format for the key or value.
|
1281
|
+
# @!attribute [rw] confidence
|
1282
|
+
# @return [::Float]
|
1283
|
+
# The confidence score of the summarization.
|
1284
|
+
# @!attribute [rw] metadata
|
1285
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1286
|
+
# A map that contains metadata about the summarization and the document
|
1287
|
+
# from which it originates.
|
1288
|
+
# @!attribute [rw] answer_record
|
1289
|
+
# @return [::String]
|
1290
|
+
# The name of the answer record.
|
1291
|
+
# Format:
|
1292
|
+
# projects/\\{project}/locations/\\{location}/answerRecords/\\{answer_record}
|
1293
|
+
# @!attribute [rw] conversation_model
|
1294
|
+
# @return [::String]
|
1295
|
+
# The name of the model that generates this summary.
|
1296
|
+
# Format:
|
1297
|
+
# projects/\\{project}/locations/\\{location}/conversationModels/\\{conversation_model}
|
1298
|
+
class ConversationSummarizationSuggestionData
|
1299
|
+
include ::Google::Protobuf::MessageExts
|
1300
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1301
|
+
|
1302
|
+
# @!attribute [rw] key
|
1303
|
+
# @return [::String]
|
1304
|
+
# @!attribute [rw] value
|
1305
|
+
# @return [::String]
|
1306
|
+
class TextSectionsEntry
|
1307
|
+
include ::Google::Protobuf::MessageExts
|
1308
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
# @!attribute [rw] key
|
1312
|
+
# @return [::String]
|
1313
|
+
# @!attribute [rw] value
|
1314
|
+
# @return [::String]
|
1315
|
+
class MetadataEntry
|
1316
|
+
include ::Google::Protobuf::MessageExts
|
1317
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1318
|
+
end
|
1319
|
+
end
|
1320
|
+
|
1266
1321
|
# The call participant speaking for a given utterance.
|
1267
1322
|
# @!attribute [rw] dialogflow_participant_name
|
1268
1323
|
# @return [::String]
|
@@ -1365,9 +1420,38 @@ module Google
|
|
1365
1420
|
# inference if the issue model is deployed and if run_issue_model_annotator
|
1366
1421
|
# is set to true. If more than one issue model is provided, only the first
|
1367
1422
|
# provided issue model will be used for inference.
|
1423
|
+
# @!attribute [rw] run_summarization_annotator
|
1424
|
+
# @return [::Boolean]
|
1425
|
+
# Whether to run the summarization annotator.
|
1426
|
+
# @!attribute [rw] summarization_config
|
1427
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnnotatorSelector::SummarizationConfig]
|
1428
|
+
# Configuration for the summarization annotator.
|
1368
1429
|
class AnnotatorSelector
|
1369
1430
|
include ::Google::Protobuf::MessageExts
|
1370
1431
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1432
|
+
|
1433
|
+
# Configuration for summarization.
|
1434
|
+
# @!attribute [rw] conversation_profile
|
1435
|
+
# @return [::String]
|
1436
|
+
# Resource name of the Dialogflow conversation profile.
|
1437
|
+
# Format:
|
1438
|
+
# projects/\\{project}/locations/\\{location}/conversationProfiles/\\{conversation_profile}
|
1439
|
+
# @!attribute [rw] summarization_model
|
1440
|
+
# @return [::Google::Cloud::ContactCenterInsights::V1::AnnotatorSelector::SummarizationConfig::SummarizationModel]
|
1441
|
+
# Default summarization model to be used.
|
1442
|
+
class SummarizationConfig
|
1443
|
+
include ::Google::Protobuf::MessageExts
|
1444
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1445
|
+
|
1446
|
+
# Summarization model to use, if `conversation_profile` is not used.
|
1447
|
+
module SummarizationModel
|
1448
|
+
# Unspecified summarization model.
|
1449
|
+
SUMMARIZATION_MODEL_UNSPECIFIED = 0
|
1450
|
+
|
1451
|
+
# The Insights baseline model.
|
1452
|
+
BASELINE_MODEL = 1
|
1453
|
+
end
|
1454
|
+
end
|
1371
1455
|
end
|
1372
1456
|
end
|
1373
1457
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-contact_center_insights-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.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: 2023-
|
11
|
+
date: 2023-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|