google-cloud-dialogflow-v2 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agent_coaching_instruction_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/ces_app_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/ces_tool_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/companion_agent_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/encryption_spec_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/generator_evaluation_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/generator_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/grounding_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/operations_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +8 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/sip_trunk_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/tool_call_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/tool_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/toolset_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +8 -5
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/generator.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +162 -0
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +5 -0
- metadata +3 -3
|
@@ -286,9 +286,10 @@ module Google
|
|
|
286
286
|
# Section name: "reason_for_cancellation".
|
|
287
287
|
REASON_FOR_CANCELLATION = 4
|
|
288
288
|
|
|
289
|
-
#
|
|
290
|
-
# the end of the conversation.
|
|
291
|
-
#
|
|
289
|
+
# Customer satisfaction derived from the text transcript only (not audio).
|
|
290
|
+
# Categorized based on customer statements by the end of the conversation.
|
|
291
|
+
# `D` for dissatisfied and `N` for neutral or satisfied (default).
|
|
292
|
+
# Section name: `customer_satisfaction`.
|
|
292
293
|
CUSTOMER_SATISFACTION = 5
|
|
293
294
|
|
|
294
295
|
# Key entities extracted from the conversation, such as ticket number,
|
|
@@ -170,6 +170,9 @@ module Google
|
|
|
170
170
|
# @return [::String]
|
|
171
171
|
# Optional. The message content.
|
|
172
172
|
# Only one of `content` and `companion_query` should be set - not both.
|
|
173
|
+
# @!attribute [rw] response_messages
|
|
174
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::ResponseMessage>]
|
|
175
|
+
# Optional. Automated agent responses.
|
|
173
176
|
# @!attribute [rw] language_code
|
|
174
177
|
# @return [::String]
|
|
175
178
|
# Optional. The message language.
|
|
@@ -967,6 +970,30 @@ module Google
|
|
|
967
970
|
# Response of the Dialogflow
|
|
968
971
|
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent Sessions.DetectIntent}
|
|
969
972
|
# call.
|
|
973
|
+
# @!attribute [rw] response_messages
|
|
974
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::ResponseMessage>]
|
|
975
|
+
# Response messages from the automated agent.
|
|
976
|
+
# @!attribute [rw] intent
|
|
977
|
+
# @return [::String]
|
|
978
|
+
# Name of the intent if an intent is matched for the query.
|
|
979
|
+
# For a V2 query, the value format is `projects/<Project ID>/locations/
|
|
980
|
+
# <Location ID>/agent/intents/<Intent ID>`.
|
|
981
|
+
# For a V3 query, the value format is `projects/<Project ID>/locations/
|
|
982
|
+
# <Location ID>/agents/<Agent ID>/intents/<Intent ID>`.
|
|
983
|
+
# @!attribute [rw] event
|
|
984
|
+
# @return [::String]
|
|
985
|
+
# Event name if an event is triggered for the query.
|
|
986
|
+
# @!attribute [rw] match_confidence
|
|
987
|
+
# @return [::Float]
|
|
988
|
+
# The confidence of the match. Values range from 0.0 (completely uncertain)
|
|
989
|
+
# to 1.0 (completely certain).
|
|
990
|
+
# This value is for informational purpose only and is only used to help match
|
|
991
|
+
# the best intent within the classification threshold. This value may change
|
|
992
|
+
# for the same end-user expression at any time due to a model retraining or
|
|
993
|
+
# change in implementation.
|
|
994
|
+
# @!attribute [rw] parameters
|
|
995
|
+
# @return [::Google::Protobuf::Struct]
|
|
996
|
+
# The collection of current parameters at the time of this response.
|
|
970
997
|
# @!attribute [rw] automated_agent_reply_type
|
|
971
998
|
# @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentReply::AutomatedAgentReplyType]
|
|
972
999
|
# AutomatedAgentReply type.
|
|
@@ -980,6 +1007,9 @@ module Google
|
|
|
980
1007
|
# The unique identifier of the current Dialogflow CX conversation page.
|
|
981
1008
|
# Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
|
|
982
1009
|
# ID>/flows/<Flow ID>/pages/<Page ID>`.
|
|
1010
|
+
# @!attribute [rw] call_companion_auth_code
|
|
1011
|
+
# @return [::String]
|
|
1012
|
+
# The auth code for accessing Call Companion UI.
|
|
983
1013
|
class AutomatedAgentReply
|
|
984
1014
|
include ::Google::Protobuf::MessageExts
|
|
985
1015
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -1316,6 +1346,134 @@ module Google
|
|
|
1316
1346
|
end
|
|
1317
1347
|
end
|
|
1318
1348
|
|
|
1349
|
+
# Response messages from an automated agent.
|
|
1350
|
+
# @!attribute [rw] text
|
|
1351
|
+
# @return [::Google::Cloud::Dialogflow::V2::ResponseMessage::Text]
|
|
1352
|
+
# Returns a text response.
|
|
1353
|
+
#
|
|
1354
|
+
# Note: The following fields are mutually exclusive: `text`, `payload`, `live_agent_handoff`, `end_interaction`, `mixed_audio`, `telephony_transfer_call`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1355
|
+
# @!attribute [rw] payload
|
|
1356
|
+
# @return [::Google::Protobuf::Struct]
|
|
1357
|
+
# Returns a response containing a custom, platform-specific payload.
|
|
1358
|
+
#
|
|
1359
|
+
# Note: The following fields are mutually exclusive: `payload`, `text`, `live_agent_handoff`, `end_interaction`, `mixed_audio`, `telephony_transfer_call`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1360
|
+
# @!attribute [rw] live_agent_handoff
|
|
1361
|
+
# @return [::Google::Cloud::Dialogflow::V2::ResponseMessage::LiveAgentHandoff]
|
|
1362
|
+
# Hands off conversation to a live agent.
|
|
1363
|
+
#
|
|
1364
|
+
# Note: The following fields are mutually exclusive: `live_agent_handoff`, `text`, `payload`, `end_interaction`, `mixed_audio`, `telephony_transfer_call`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1365
|
+
# @!attribute [rw] end_interaction
|
|
1366
|
+
# @return [::Google::Cloud::Dialogflow::V2::ResponseMessage::EndInteraction]
|
|
1367
|
+
# A signal that indicates the interaction with the Dialogflow agent has
|
|
1368
|
+
# ended.
|
|
1369
|
+
#
|
|
1370
|
+
# Note: The following fields are mutually exclusive: `end_interaction`, `text`, `payload`, `live_agent_handoff`, `mixed_audio`, `telephony_transfer_call`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1371
|
+
# @!attribute [rw] mixed_audio
|
|
1372
|
+
# @return [::Google::Cloud::Dialogflow::V2::ResponseMessage::MixedAudio]
|
|
1373
|
+
# An audio response message composed of both the synthesized Dialogflow
|
|
1374
|
+
# agent responses and the audios hosted in places known to the client.
|
|
1375
|
+
#
|
|
1376
|
+
# Note: The following fields are mutually exclusive: `mixed_audio`, `text`, `payload`, `live_agent_handoff`, `end_interaction`, `telephony_transfer_call`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1377
|
+
# @!attribute [rw] telephony_transfer_call
|
|
1378
|
+
# @return [::Google::Cloud::Dialogflow::V2::ResponseMessage::TelephonyTransferCall]
|
|
1379
|
+
# A signal that the client should transfer the phone call connected to
|
|
1380
|
+
# this agent to a third-party endpoint.
|
|
1381
|
+
#
|
|
1382
|
+
# Note: The following fields are mutually exclusive: `telephony_transfer_call`, `text`, `payload`, `live_agent_handoff`, `end_interaction`, `mixed_audio`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1383
|
+
class ResponseMessage
|
|
1384
|
+
include ::Google::Protobuf::MessageExts
|
|
1385
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1386
|
+
|
|
1387
|
+
# The text response message.
|
|
1388
|
+
# @!attribute [rw] text
|
|
1389
|
+
# @return [::Array<::String>]
|
|
1390
|
+
# A collection of text response variants. If multiple variants are
|
|
1391
|
+
# defined, only one text response variant is returned at runtime.
|
|
1392
|
+
class Text
|
|
1393
|
+
include ::Google::Protobuf::MessageExts
|
|
1394
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1395
|
+
end
|
|
1396
|
+
|
|
1397
|
+
# Indicates that the conversation should be handed off to a human agent.
|
|
1398
|
+
#
|
|
1399
|
+
# Dialogflow only uses this to determine which conversations were handed off
|
|
1400
|
+
# to a human agent for measurement purposes. What else to do with this signal
|
|
1401
|
+
# is up to you and your handoff procedures.
|
|
1402
|
+
#
|
|
1403
|
+
# You may set this, for example:
|
|
1404
|
+
#
|
|
1405
|
+
# * In the entry fulfillment of a CX Page if entering the page indicates
|
|
1406
|
+
# something went extremely wrong in the conversation.
|
|
1407
|
+
# * In a webhook response when you determine that the customer issue can only
|
|
1408
|
+
# be handled by a human.
|
|
1409
|
+
# @!attribute [rw] metadata
|
|
1410
|
+
# @return [::Google::Protobuf::Struct]
|
|
1411
|
+
# Custom metadata for your handoff procedure. Dialogflow doesn't impose
|
|
1412
|
+
# any structure on this.
|
|
1413
|
+
class LiveAgentHandoff
|
|
1414
|
+
include ::Google::Protobuf::MessageExts
|
|
1415
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1416
|
+
end
|
|
1417
|
+
|
|
1418
|
+
# Indicates that interaction with the Dialogflow agent has ended.
|
|
1419
|
+
class EndInteraction
|
|
1420
|
+
include ::Google::Protobuf::MessageExts
|
|
1421
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1422
|
+
end
|
|
1423
|
+
|
|
1424
|
+
# Represents an audio message that is composed of both segments
|
|
1425
|
+
# synthesized from the Dialogflow agent prompts and ones hosted externally
|
|
1426
|
+
# at the specified URIs.
|
|
1427
|
+
# @!attribute [rw] segments
|
|
1428
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::ResponseMessage::MixedAudio::Segment>]
|
|
1429
|
+
# Segments this audio response is composed of.
|
|
1430
|
+
class MixedAudio
|
|
1431
|
+
include ::Google::Protobuf::MessageExts
|
|
1432
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1433
|
+
|
|
1434
|
+
# Represents one segment of audio.
|
|
1435
|
+
# @!attribute [rw] audio
|
|
1436
|
+
# @return [::String]
|
|
1437
|
+
# Raw audio synthesized from the Dialogflow agent's response using
|
|
1438
|
+
# the output config specified in the request.
|
|
1439
|
+
#
|
|
1440
|
+
# Note: The following fields are mutually exclusive: `audio`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1441
|
+
# @!attribute [rw] uri
|
|
1442
|
+
# @return [::String]
|
|
1443
|
+
# Client-specific URI that points to an audio clip accessible to the
|
|
1444
|
+
# client.
|
|
1445
|
+
#
|
|
1446
|
+
# Note: The following fields are mutually exclusive: `uri`, `audio`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1447
|
+
# @!attribute [rw] allow_playback_interruption
|
|
1448
|
+
# @return [::Boolean]
|
|
1449
|
+
# Whether the playback of this segment can be interrupted by the end
|
|
1450
|
+
# user's speech and the client should then start the next Dialogflow
|
|
1451
|
+
# request.
|
|
1452
|
+
class Segment
|
|
1453
|
+
include ::Google::Protobuf::MessageExts
|
|
1454
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1455
|
+
end
|
|
1456
|
+
end
|
|
1457
|
+
|
|
1458
|
+
# Represents the signal that telles the client to transfer the phone call
|
|
1459
|
+
# connected to the agent to a third-party endpoint.
|
|
1460
|
+
# @!attribute [rw] phone_number
|
|
1461
|
+
# @return [::String]
|
|
1462
|
+
# Transfer the call to a phone number
|
|
1463
|
+
# in [E.164 format](https://en.wikipedia.org/wiki/E.164).
|
|
1464
|
+
#
|
|
1465
|
+
# Note: The following fields are mutually exclusive: `phone_number`, `sip_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1466
|
+
# @!attribute [rw] sip_uri
|
|
1467
|
+
# @return [::String]
|
|
1468
|
+
# Transfer the call to a SIP endpoint.
|
|
1469
|
+
#
|
|
1470
|
+
# Note: The following fields are mutually exclusive: `sip_uri`, `phone_number`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
1471
|
+
class TelephonyTransferCall
|
|
1472
|
+
include ::Google::Protobuf::MessageExts
|
|
1473
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
1474
|
+
end
|
|
1475
|
+
end
|
|
1476
|
+
|
|
1319
1477
|
# The request message for
|
|
1320
1478
|
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_knowledge_assist Participants.SuggestKnowledgeAssist}.
|
|
1321
1479
|
# @!attribute [rw] parent
|
|
@@ -1961,6 +2119,10 @@ module Google
|
|
|
1961
2119
|
# Optional. If true, Gemini ASR will be used for transcription instead of
|
|
1962
2120
|
# Cloud Speech-to-Text. If false, Cloud Speech-to-Text will be used.
|
|
1963
2121
|
# If unset, this setting is inherited from the ConversationProfile.
|
|
2122
|
+
# @!attribute [rw] disable_interim_input_transcripts
|
|
2123
|
+
# @return [::Boolean]
|
|
2124
|
+
# Optional. Disables emission of interim input transcriptions when set to
|
|
2125
|
+
# `true`.
|
|
1964
2126
|
class VoiceSessionConfig
|
|
1965
2127
|
include ::Google::Protobuf::MessageExts
|
|
1966
2128
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -754,6 +754,11 @@ module Google
|
|
|
754
754
|
# @!attribute [rw] query_text_sentiment
|
|
755
755
|
# @return [::Google::Cloud::Dialogflow::V2::Sentiment]
|
|
756
756
|
# The sentiment analysis result for `query_text`.
|
|
757
|
+
# @!attribute [r] status
|
|
758
|
+
# @return [::Google::Rpc::Status]
|
|
759
|
+
# Output only. The status of the sentiment analysis operation.
|
|
760
|
+
# If the operation failed, this field will contain the error details.
|
|
761
|
+
# For example, it might indicate a quota issue (RESOURCE_EXHAUSTED).
|
|
757
762
|
class SentimentAnalysisResult
|
|
758
763
|
include ::Google::Protobuf::MessageExts
|
|
759
764
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-dialogflow-v2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.20.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.6'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.6'
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: google-cloud-errors
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|