google-cloud-dialogflow-v2 0.27.0 → 0.28.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/answer_record_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +126 -0
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +8 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +117 -0
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +94 -0
- data/lib/google/cloud/dialogflow/v2/conversations/rest/service_stub.rb +84 -0
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +4 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +3 -1
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +25 -0
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +99 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +26 -1
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +53 -1
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +4 -1
- metadata +3 -3
@@ -249,7 +249,14 @@ module Google
|
|
249
249
|
# Automatically iterates all participants and tries to compile
|
250
250
|
# suggestions.
|
251
251
|
#
|
252
|
-
# Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST
|
252
|
+
# Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST,
|
253
|
+
# KNOWLEDGE_ASSIST.
|
254
|
+
# @!attribute [rw] disable_agent_query_logging
|
255
|
+
# @return [::Boolean]
|
256
|
+
# Optional. Disable the logging of search queries sent by human agents. It
|
257
|
+
# can prevent those queries from being stored at answer records.
|
258
|
+
#
|
259
|
+
# Supported features: KNOWLEDGE_SEARCH.
|
253
260
|
# @!attribute [rw] suggestion_trigger_settings
|
254
261
|
# @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionTriggerSettings]
|
255
262
|
# Settings of suggestion trigger.
|
@@ -374,9 +381,24 @@ module Google
|
|
374
381
|
# intent detection and suggestion. Format: `projects/<Project
|
375
382
|
# ID>/locations/<Location ID>/agent`. When multiple agents are allowed in
|
376
383
|
# the same Dialogflow project.
|
384
|
+
# @!attribute [rw] human_agent_side_config
|
385
|
+
# @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource::HumanAgentSideConfig]
|
386
|
+
# Optional. The Dialogflow assist configuration for human agent.
|
377
387
|
class DialogflowQuerySource
|
378
388
|
include ::Google::Protobuf::MessageExts
|
379
389
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
390
|
+
|
391
|
+
# The configuration used for human agent side Dialogflow assist
|
392
|
+
# suggestion.
|
393
|
+
# @!attribute [rw] agent
|
394
|
+
# @return [::String]
|
395
|
+
# Optional. The name of a dialogflow virtual agent used for intent
|
396
|
+
# detection and suggestion triggered by human agent.
|
397
|
+
# Format: `projects/<Project ID>/locations/<Location ID>/agent`.
|
398
|
+
class HumanAgentSideConfig
|
399
|
+
include ::Google::Protobuf::MessageExts
|
400
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
401
|
+
end
|
380
402
|
end
|
381
403
|
|
382
404
|
# Settings that determine how to filter recent conversation context when
|
@@ -588,6 +610,9 @@ module Google
|
|
588
610
|
|
589
611
|
# Run smart reply model for chat.
|
590
612
|
SMART_REPLY = 3
|
613
|
+
|
614
|
+
# Run knowledge search with text input from agent or text generated query.
|
615
|
+
KNOWLEDGE_SEARCH = 14
|
591
616
|
end
|
592
617
|
end
|
593
618
|
|
@@ -244,6 +244,9 @@ module Google
|
|
244
244
|
# @!attribute [rw] event_input
|
245
245
|
# @return [::Google::Cloud::Dialogflow::V2::EventInput]
|
246
246
|
# An input event to send to Dialogflow.
|
247
|
+
# @!attribute [rw] suggestion_input
|
248
|
+
# @return [::Google::Cloud::Dialogflow::V2::SuggestionInput]
|
249
|
+
# An input representing the selection of a suggestion.
|
247
250
|
# @!attribute [rw] reply_audio_config
|
248
251
|
# @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
|
249
252
|
# Speech synthesis configuration.
|
@@ -412,7 +415,7 @@ module Google
|
|
412
415
|
# The UTF-8 encoded natural language text to be processed. Must be sent if
|
413
416
|
# `text_config` is set in the first message. Text length must not exceed
|
414
417
|
# 256 bytes for virtual agent interactions. The `input_text` field can be
|
415
|
-
# only sent once.
|
418
|
+
# only sent once, and would cancel the speech recognition if any ongoing.
|
416
419
|
# @!attribute [rw] input_dtmf
|
417
420
|
# @return [::Google::Cloud::Dialogflow::V2::TelephonyDtmfEvents]
|
418
421
|
# The DTMF digits used to invoke intent and fill in parameter value.
|
@@ -837,6 +840,41 @@ module Google
|
|
837
840
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
838
841
|
end
|
839
842
|
|
843
|
+
# Represents an intent suggestion.
|
844
|
+
# @!attribute [rw] display_name
|
845
|
+
# @return [::String]
|
846
|
+
# The display name of the intent.
|
847
|
+
# @!attribute [rw] intent_v2
|
848
|
+
# @return [::String]
|
849
|
+
# The unique identifier of this
|
850
|
+
# {::Google::Cloud::Dialogflow::V2::Intent intent}. Format: `projects/<Project
|
851
|
+
# ID>/locations/<Location ID>/agent/intents/<Intent ID>`.
|
852
|
+
# @!attribute [rw] description
|
853
|
+
# @return [::String]
|
854
|
+
# Human readable description for better understanding an intent like its
|
855
|
+
# scope, content, result etc. Maximum character limit: 140 characters.
|
856
|
+
class IntentSuggestion
|
857
|
+
include ::Google::Protobuf::MessageExts
|
858
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
859
|
+
end
|
860
|
+
|
861
|
+
# Represents a Dialogflow assist answer.
|
862
|
+
# @!attribute [rw] query_result
|
863
|
+
# @return [::Google::Cloud::Dialogflow::V2::QueryResult]
|
864
|
+
# Result from v2 agent.
|
865
|
+
# @!attribute [rw] intent_suggestion
|
866
|
+
# @return [::Google::Cloud::Dialogflow::V2::IntentSuggestion]
|
867
|
+
# An intent suggestion generated from conversation.
|
868
|
+
# @!attribute [rw] answer_record
|
869
|
+
# @return [::String]
|
870
|
+
# The name of answer record, in the format of
|
871
|
+
# "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
|
872
|
+
# ID>"
|
873
|
+
class DialogflowAssistAnswer
|
874
|
+
include ::Google::Protobuf::MessageExts
|
875
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
876
|
+
end
|
877
|
+
|
840
878
|
# One response of different type of suggestion response which is used in
|
841
879
|
# the response of
|
842
880
|
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}
|
@@ -915,6 +953,20 @@ module Google
|
|
915
953
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
916
954
|
end
|
917
955
|
|
956
|
+
# Represents the selection of a suggestion.
|
957
|
+
# @!attribute [rw] answer_record
|
958
|
+
# @return [::String]
|
959
|
+
# Required. The ID of a suggestion selected by the human agent.
|
960
|
+
# The suggestion(s) were generated in a previous call to
|
961
|
+
# request Dialogflow assist.
|
962
|
+
# The format is:
|
963
|
+
# `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
|
964
|
+
# ID>` where <Answer Record ID> is an alphanumeric string.
|
965
|
+
class SuggestionInput
|
966
|
+
include ::Google::Protobuf::MessageExts
|
967
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
968
|
+
end
|
969
|
+
|
918
970
|
# Represents the parameters of human assist query.
|
919
971
|
# @!attribute [rw] documents_metadata_filters
|
920
972
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
@@ -473,7 +473,10 @@ module Google
|
|
473
473
|
# beginning of the stream.
|
474
474
|
# @!attribute [rw] no_speech_timeout
|
475
475
|
# @return [::Google::Protobuf::Duration]
|
476
|
-
# No speech timeout settings
|
476
|
+
# No speech timeout settings for the stream.
|
477
|
+
# @!attribute [rw] endpointing_timeout
|
478
|
+
# @return [::Google::Protobuf::Duration]
|
479
|
+
# Speech endpointing timeout settings for the stream.
|
477
480
|
# @!attribute [rw] is_input_text
|
478
481
|
# @return [::Boolean]
|
479
482
|
# Whether the streaming terminates with an injected text query.
|
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.28.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-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -427,7 +427,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
427
427
|
- !ruby/object:Gem::Version
|
428
428
|
version: '0'
|
429
429
|
requirements: []
|
430
|
-
rubygems_version: 3.4.
|
430
|
+
rubygems_version: 3.4.19
|
431
431
|
signing_key:
|
432
432
|
specification_version: 4
|
433
433
|
summary: Builds conversational interfaces (for example, chatbots, and voice-powered
|