google-apis-dialogflow_v2 0.99.0 → 0.100.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21f5c1f1b08a96212db25b4e247b59789a1a5385b4f441ab3c4e0491837ea751
|
4
|
+
data.tar.gz: 9ac8071d3de53e11fb720f32634ac3aa4128d67e36a32b76ec199c5e806e7885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e46a8a5b5ff90046ef095d9ae6a23ceb023e3d555b58b8494dde79724710b8a2bc5cf503ceca37104602fe0bace73617350aee172a5e69b40a7ae5c37e771580
|
7
|
+
data.tar.gz: 6a7204fdea9847f2d9d9fc15480f3f1b3414d7968c7121ef2c8d93d1af7d2f6762461ca27bedc02adb2a41e75900d0332b26b79d9f96c9cd57052dc0b22cc68c
|
data/CHANGELOG.md
CHANGED
@@ -8801,6 +8801,11 @@ module Google
|
|
8801
8801
|
# @return [String]
|
8802
8802
|
attr_accessor :end_time
|
8803
8803
|
|
8804
|
+
# Output only. The context reference updates provided by external systems.
|
8805
|
+
# Corresponds to the JSON property `ingestedContextReferences`
|
8806
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>]
|
8807
|
+
attr_accessor :ingested_context_references
|
8808
|
+
|
8804
8809
|
# Output only. The current state of the Conversation.
|
8805
8810
|
# Corresponds to the JSON property `lifecycleState`
|
8806
8811
|
# @return [String]
|
@@ -8838,6 +8843,7 @@ module Google
|
|
8838
8843
|
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
8839
8844
|
@conversation_stage = args[:conversation_stage] if args.key?(:conversation_stage)
|
8840
8845
|
@end_time = args[:end_time] if args.key?(:end_time)
|
8846
|
+
@ingested_context_references = args[:ingested_context_references] if args.key?(:ingested_context_references)
|
8841
8847
|
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
8842
8848
|
@name = args[:name] if args.key?(:name)
|
8843
8849
|
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
@@ -8865,6 +8871,76 @@ module Google
|
|
8865
8871
|
end
|
8866
8872
|
end
|
8867
8873
|
|
8874
|
+
# Represents a section of ingested context information.
|
8875
|
+
class GoogleCloudDialogflowV2ConversationContextReference
|
8876
|
+
include Google::Apis::Core::Hashable
|
8877
|
+
|
8878
|
+
# Required. The list of content updates for a context reference.
|
8879
|
+
# Corresponds to the JSON property `contextContents`
|
8880
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReferenceContextContent>]
|
8881
|
+
attr_accessor :context_contents
|
8882
|
+
|
8883
|
+
# Output only. The time the context reference was first created.
|
8884
|
+
# Corresponds to the JSON property `createTime`
|
8885
|
+
# @return [String]
|
8886
|
+
attr_accessor :create_time
|
8887
|
+
|
8888
|
+
# Optional. The language of the information ingested, defaults to "en-US" if not
|
8889
|
+
# set.
|
8890
|
+
# Corresponds to the JSON property `languageCode`
|
8891
|
+
# @return [String]
|
8892
|
+
attr_accessor :language_code
|
8893
|
+
|
8894
|
+
# Required. The mode in which context reference contents are updated.
|
8895
|
+
# Corresponds to the JSON property `updateMode`
|
8896
|
+
# @return [String]
|
8897
|
+
attr_accessor :update_mode
|
8898
|
+
|
8899
|
+
def initialize(**args)
|
8900
|
+
update!(**args)
|
8901
|
+
end
|
8902
|
+
|
8903
|
+
# Update properties of this object
|
8904
|
+
def update!(**args)
|
8905
|
+
@context_contents = args[:context_contents] if args.key?(:context_contents)
|
8906
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
8907
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
8908
|
+
@update_mode = args[:update_mode] if args.key?(:update_mode)
|
8909
|
+
end
|
8910
|
+
end
|
8911
|
+
|
8912
|
+
# Contents ingested.
|
8913
|
+
class GoogleCloudDialogflowV2ConversationContextReferenceContextContent
|
8914
|
+
include Google::Apis::Core::Hashable
|
8915
|
+
|
8916
|
+
# Required. The information ingested in a single request.
|
8917
|
+
# Corresponds to the JSON property `content`
|
8918
|
+
# @return [String]
|
8919
|
+
attr_accessor :content
|
8920
|
+
|
8921
|
+
# Required. The format of the ingested string.
|
8922
|
+
# Corresponds to the JSON property `contentFormat`
|
8923
|
+
# @return [String]
|
8924
|
+
attr_accessor :content_format
|
8925
|
+
|
8926
|
+
# Output only. The time when this information was incorporated into the relevant
|
8927
|
+
# context reference.
|
8928
|
+
# Corresponds to the JSON property `ingestionTime`
|
8929
|
+
# @return [String]
|
8930
|
+
attr_accessor :ingestion_time
|
8931
|
+
|
8932
|
+
def initialize(**args)
|
8933
|
+
update!(**args)
|
8934
|
+
end
|
8935
|
+
|
8936
|
+
# Update properties of this object
|
8937
|
+
def update!(**args)
|
8938
|
+
@content = args[:content] if args.key?(:content)
|
8939
|
+
@content_format = args[:content_format] if args.key?(:content_format)
|
8940
|
+
@ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
|
8941
|
+
end
|
8942
|
+
end
|
8943
|
+
|
8868
8944
|
# Represents a conversation dataset that a user imports raw data into. The data
|
8869
8945
|
# inside ConversationDataset can not be changed after ImportConversationData
|
8870
8946
|
# finishes (and calling ImportConversationData on a dataset that already has
|
@@ -10516,6 +10592,44 @@ module Google
|
|
10516
10592
|
end
|
10517
10593
|
end
|
10518
10594
|
|
10595
|
+
# Free form generator context that customer can configure.
|
10596
|
+
class GoogleCloudDialogflowV2FreeFormContext
|
10597
|
+
include Google::Apis::Core::Hashable
|
10598
|
+
|
10599
|
+
# Optional. Free form text input to LLM.
|
10600
|
+
# Corresponds to the JSON property `text`
|
10601
|
+
# @return [String]
|
10602
|
+
attr_accessor :text
|
10603
|
+
|
10604
|
+
def initialize(**args)
|
10605
|
+
update!(**args)
|
10606
|
+
end
|
10607
|
+
|
10608
|
+
# Update properties of this object
|
10609
|
+
def update!(**args)
|
10610
|
+
@text = args[:text] if args.key?(:text)
|
10611
|
+
end
|
10612
|
+
end
|
10613
|
+
|
10614
|
+
# Suggestion generated using free form generator.
|
10615
|
+
class GoogleCloudDialogflowV2FreeFormSuggestion
|
10616
|
+
include Google::Apis::Core::Hashable
|
10617
|
+
|
10618
|
+
# Required. Free form suggestion.
|
10619
|
+
# Corresponds to the JSON property `response`
|
10620
|
+
# @return [String]
|
10621
|
+
attr_accessor :response
|
10622
|
+
|
10623
|
+
def initialize(**args)
|
10624
|
+
update!(**args)
|
10625
|
+
end
|
10626
|
+
|
10627
|
+
# Update properties of this object
|
10628
|
+
def update!(**args)
|
10629
|
+
@response = args[:response] if args.key?(:response)
|
10630
|
+
end
|
10631
|
+
end
|
10632
|
+
|
10519
10633
|
# By default, your agent responds to a matched intent with a static response. As
|
10520
10634
|
# an alternative, you can provide a more dynamic response by using fulfillment.
|
10521
10635
|
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
@@ -10691,6 +10805,14 @@ module Google
|
|
10691
10805
|
class GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
|
10692
10806
|
include Google::Apis::Core::Hashable
|
10693
10807
|
|
10808
|
+
# Optional. A section of ingested context information. The key is the name of
|
10809
|
+
# the context reference and the value contains the contents of the context
|
10810
|
+
# reference. The key is used to incorporate ingested context references to
|
10811
|
+
# enhance the generator.
|
10812
|
+
# Corresponds to the JSON property `contextReferences`
|
10813
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>]
|
10814
|
+
attr_accessor :context_references
|
10815
|
+
|
10694
10816
|
# Context of the conversation, including transcripts.
|
10695
10817
|
# Corresponds to the JSON property `conversationContext`
|
10696
10818
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext]
|
@@ -10719,6 +10841,7 @@ module Google
|
|
10719
10841
|
|
10720
10842
|
# Update properties of this object
|
10721
10843
|
def update!(**args)
|
10844
|
+
@context_references = args[:context_references] if args.key?(:context_references)
|
10722
10845
|
@conversation_context = args[:conversation_context] if args.key?(:conversation_context)
|
10723
10846
|
@generator = args[:generator] if args.key?(:generator)
|
10724
10847
|
@generator_name = args[:generator_name] if args.key?(:generator_name)
|
@@ -10881,6 +11004,92 @@ module Google
|
|
10881
11004
|
end
|
10882
11005
|
end
|
10883
11006
|
|
11007
|
+
# The request message for Conversations.GenerateSuggestions.
|
11008
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsRequest
|
11009
|
+
include Google::Apis::Core::Hashable
|
11010
|
+
|
11011
|
+
# Optional. The name of the latest conversation message for which the request is
|
11012
|
+
# triggered. Format: `projects//locations//conversations//messages/`.
|
11013
|
+
# Corresponds to the JSON property `latestMessage`
|
11014
|
+
# @return [String]
|
11015
|
+
attr_accessor :latest_message
|
11016
|
+
|
11017
|
+
# Optional. A list of trigger events. Only generators configured in the
|
11018
|
+
# conversation_profile whose trigger_event is listed here will be triggered.
|
11019
|
+
# Corresponds to the JSON property `triggerEvents`
|
11020
|
+
# @return [Array<String>]
|
11021
|
+
attr_accessor :trigger_events
|
11022
|
+
|
11023
|
+
def initialize(**args)
|
11024
|
+
update!(**args)
|
11025
|
+
end
|
11026
|
+
|
11027
|
+
# Update properties of this object
|
11028
|
+
def update!(**args)
|
11029
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
11030
|
+
@trigger_events = args[:trigger_events] if args.key?(:trigger_events)
|
11031
|
+
end
|
11032
|
+
end
|
11033
|
+
|
11034
|
+
# The response message for Conversations.GenerateSuggestions.
|
11035
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
11036
|
+
include Google::Apis::Core::Hashable
|
11037
|
+
|
11038
|
+
# The answers generated for the conversation based on context.
|
11039
|
+
# Corresponds to the JSON property `generatorSuggestionAnswers`
|
11040
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
|
11041
|
+
attr_accessor :generator_suggestion_answers
|
11042
|
+
|
11043
|
+
# The name of the latest conversation message used as context for compiling
|
11044
|
+
# suggestion. Format: `projects//locations//conversations//messages/`.
|
11045
|
+
# Corresponds to the JSON property `latestMessage`
|
11046
|
+
# @return [String]
|
11047
|
+
attr_accessor :latest_message
|
11048
|
+
|
11049
|
+
def initialize(**args)
|
11050
|
+
update!(**args)
|
11051
|
+
end
|
11052
|
+
|
11053
|
+
# Update properties of this object
|
11054
|
+
def update!(**args)
|
11055
|
+
@generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
|
11056
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
11057
|
+
end
|
11058
|
+
end
|
11059
|
+
|
11060
|
+
# A GeneratorSuggestion answer.
|
11061
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
11062
|
+
include Google::Apis::Core::Hashable
|
11063
|
+
|
11064
|
+
# Answer record that uniquely identifies the suggestion. This can be used to
|
11065
|
+
# provide suggestion feedback.
|
11066
|
+
# Corresponds to the JSON property `answerRecord`
|
11067
|
+
# @return [String]
|
11068
|
+
attr_accessor :answer_record
|
11069
|
+
|
11070
|
+
# Suggestion generated using a Generator.
|
11071
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
11072
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion]
|
11073
|
+
attr_accessor :generator_suggestion
|
11074
|
+
|
11075
|
+
# The name of the generator used to generate this suggestion. Format: `projects//
|
11076
|
+
# locations//generators/`.
|
11077
|
+
# Corresponds to the JSON property `sourceGenerator`
|
11078
|
+
# @return [String]
|
11079
|
+
attr_accessor :source_generator
|
11080
|
+
|
11081
|
+
def initialize(**args)
|
11082
|
+
update!(**args)
|
11083
|
+
end
|
11084
|
+
|
11085
|
+
# Update properties of this object
|
11086
|
+
def update!(**args)
|
11087
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
11088
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
11089
|
+
@source_generator = args[:source_generator] if args.key?(:source_generator)
|
11090
|
+
end
|
11091
|
+
end
|
11092
|
+
|
10884
11093
|
# LLM generator.
|
10885
11094
|
class GoogleCloudDialogflowV2Generator
|
10886
11095
|
include Google::Apis::Core::Hashable
|
@@ -10895,6 +11104,11 @@ module Google
|
|
10895
11104
|
# @return [String]
|
10896
11105
|
attr_accessor :description
|
10897
11106
|
|
11107
|
+
# Free form generator context that customer can configure.
|
11108
|
+
# Corresponds to the JSON property `freeFormContext`
|
11109
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormContext]
|
11110
|
+
attr_accessor :free_form_context
|
11111
|
+
|
10898
11112
|
# The parameters of inference.
|
10899
11113
|
# Corresponds to the JSON property `inferenceParameter`
|
10900
11114
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter]
|
@@ -10906,6 +11120,14 @@ module Google
|
|
10906
11120
|
# @return [String]
|
10907
11121
|
attr_accessor :name
|
10908
11122
|
|
11123
|
+
# Optional. The published Large Language Model name. * To use the latest model
|
11124
|
+
# version, specify the model name without version number. Example: `text-bison` *
|
11125
|
+
# To use a stable model version, specify the version number as well. Example: `
|
11126
|
+
# text-bison@002`.
|
11127
|
+
# Corresponds to the JSON property `publishedModel`
|
11128
|
+
# @return [String]
|
11129
|
+
attr_accessor :published_model
|
11130
|
+
|
10909
11131
|
# Summarization context that customer can configure.
|
10910
11132
|
# Corresponds to the JSON property `summarizationContext`
|
10911
11133
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext]
|
@@ -10930,8 +11152,10 @@ module Google
|
|
10930
11152
|
def update!(**args)
|
10931
11153
|
@create_time = args[:create_time] if args.key?(:create_time)
|
10932
11154
|
@description = args[:description] if args.key?(:description)
|
11155
|
+
@free_form_context = args[:free_form_context] if args.key?(:free_form_context)
|
10933
11156
|
@inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
|
10934
11157
|
@name = args[:name] if args.key?(:name)
|
11158
|
+
@published_model = args[:published_model] if args.key?(:published_model)
|
10935
11159
|
@summarization_context = args[:summarization_context] if args.key?(:summarization_context)
|
10936
11160
|
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
10937
11161
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -10942,6 +11166,11 @@ module Google
|
|
10942
11166
|
class GoogleCloudDialogflowV2GeneratorSuggestion
|
10943
11167
|
include Google::Apis::Core::Hashable
|
10944
11168
|
|
11169
|
+
# Suggestion generated using free form generator.
|
11170
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
11171
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormSuggestion]
|
11172
|
+
attr_accessor :free_form_suggestion
|
11173
|
+
|
10945
11174
|
# Suggested summary of the conversation.
|
10946
11175
|
# Corresponds to the JSON property `summarySuggestion`
|
10947
11176
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestion]
|
@@ -10953,6 +11182,7 @@ module Google
|
|
10953
11182
|
|
10954
11183
|
# Update properties of this object
|
10955
11184
|
def update!(**args)
|
11185
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
10956
11186
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
10957
11187
|
end
|
10958
11188
|
end
|
@@ -11848,6 +12078,47 @@ module Google
|
|
11848
12078
|
end
|
11849
12079
|
end
|
11850
12080
|
|
12081
|
+
# The request message for ConversationsService.IngestContextReferences.
|
12082
|
+
class GoogleCloudDialogflowV2IngestContextReferencesRequest
|
12083
|
+
include Google::Apis::Core::Hashable
|
12084
|
+
|
12085
|
+
# Required. The context references to ingest. The key is the name of the context
|
12086
|
+
# reference and the value contains the contents of the context reference. The
|
12087
|
+
# key is used to incorporate ingested context references to enhance the
|
12088
|
+
# generator.
|
12089
|
+
# Corresponds to the JSON property `contextReferences`
|
12090
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>]
|
12091
|
+
attr_accessor :context_references
|
12092
|
+
|
12093
|
+
def initialize(**args)
|
12094
|
+
update!(**args)
|
12095
|
+
end
|
12096
|
+
|
12097
|
+
# Update properties of this object
|
12098
|
+
def update!(**args)
|
12099
|
+
@context_references = args[:context_references] if args.key?(:context_references)
|
12100
|
+
end
|
12101
|
+
end
|
12102
|
+
|
12103
|
+
# The response message for ConversationsService.IngestContextReferences.
|
12104
|
+
class GoogleCloudDialogflowV2IngestContextReferencesResponse
|
12105
|
+
include Google::Apis::Core::Hashable
|
12106
|
+
|
12107
|
+
# All context references ingested.
|
12108
|
+
# Corresponds to the JSON property `ingestedContextReferences`
|
12109
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>]
|
12110
|
+
attr_accessor :ingested_context_references
|
12111
|
+
|
12112
|
+
def initialize(**args)
|
12113
|
+
update!(**args)
|
12114
|
+
end
|
12115
|
+
|
12116
|
+
# Update properties of this object
|
12117
|
+
def update!(**args)
|
12118
|
+
@ingested_context_references = args[:ingested_context_references] if args.key?(:ingested_context_references)
|
12119
|
+
end
|
12120
|
+
end
|
12121
|
+
|
11851
12122
|
# Metadata for initializing a location-level encryption specification.
|
11852
12123
|
class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata
|
11853
12124
|
include Google::Apis::Core::Hashable
|
@@ -16224,6 +16495,11 @@ module Google
|
|
16224
16495
|
# @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
|
16225
16496
|
attr_accessor :error
|
16226
16497
|
|
16498
|
+
# The response message for Conversations.GenerateSuggestions.
|
16499
|
+
# Corresponds to the JSON property `generateSuggestionsResponse`
|
16500
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
|
16501
|
+
attr_accessor :generate_suggestions_response
|
16502
|
+
|
16227
16503
|
# The response message for Participants.SuggestArticles.
|
16228
16504
|
# Corresponds to the JSON property `suggestArticlesResponse`
|
16229
16505
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse]
|
@@ -16251,6 +16527,7 @@ module Google
|
|
16251
16527
|
# Update properties of this object
|
16252
16528
|
def update!(**args)
|
16253
16529
|
@error = args[:error] if args.key?(:error)
|
16530
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
16254
16531
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
16255
16532
|
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
16256
16533
|
@suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
|
@@ -17442,6 +17719,25 @@ module Google
|
|
17442
17719
|
end
|
17443
17720
|
end
|
17444
17721
|
|
17722
|
+
# Suggestion generated using free form generator.
|
17723
|
+
class GoogleCloudDialogflowV2beta1FreeFormSuggestion
|
17724
|
+
include Google::Apis::Core::Hashable
|
17725
|
+
|
17726
|
+
# Required. Free form suggestion.
|
17727
|
+
# Corresponds to the JSON property `response`
|
17728
|
+
# @return [String]
|
17729
|
+
attr_accessor :response
|
17730
|
+
|
17731
|
+
def initialize(**args)
|
17732
|
+
update!(**args)
|
17733
|
+
end
|
17734
|
+
|
17735
|
+
# Update properties of this object
|
17736
|
+
def update!(**args)
|
17737
|
+
@response = args[:response] if args.key?(:response)
|
17738
|
+
end
|
17739
|
+
end
|
17740
|
+
|
17445
17741
|
# Google Cloud Storage location for the output.
|
17446
17742
|
class GoogleCloudDialogflowV2beta1GcsDestination
|
17447
17743
|
include Google::Apis::Core::Hashable
|
@@ -17463,6 +17759,90 @@ module Google
|
|
17463
17759
|
end
|
17464
17760
|
end
|
17465
17761
|
|
17762
|
+
# The response message for Conversations.GenerateSuggestions.
|
17763
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
17764
|
+
include Google::Apis::Core::Hashable
|
17765
|
+
|
17766
|
+
# The answers generated for the conversation based on context.
|
17767
|
+
# Corresponds to the JSON property `generatorSuggestionAnswers`
|
17768
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
|
17769
|
+
attr_accessor :generator_suggestion_answers
|
17770
|
+
|
17771
|
+
# The name of the latest conversation message used as context for compiling
|
17772
|
+
# suggestion. Format: `projects//locations//conversations//messages/`.
|
17773
|
+
# Corresponds to the JSON property `latestMessage`
|
17774
|
+
# @return [String]
|
17775
|
+
attr_accessor :latest_message
|
17776
|
+
|
17777
|
+
def initialize(**args)
|
17778
|
+
update!(**args)
|
17779
|
+
end
|
17780
|
+
|
17781
|
+
# Update properties of this object
|
17782
|
+
def update!(**args)
|
17783
|
+
@generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
|
17784
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
17785
|
+
end
|
17786
|
+
end
|
17787
|
+
|
17788
|
+
# A GeneratorSuggestion answer.
|
17789
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
17790
|
+
include Google::Apis::Core::Hashable
|
17791
|
+
|
17792
|
+
# Answer record that uniquely identifies the suggestion. This can be used to
|
17793
|
+
# provide suggestion feedback.
|
17794
|
+
# Corresponds to the JSON property `answerRecord`
|
17795
|
+
# @return [String]
|
17796
|
+
attr_accessor :answer_record
|
17797
|
+
|
17798
|
+
# Suggestion generated using a Generator.
|
17799
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
17800
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
|
17801
|
+
attr_accessor :generator_suggestion
|
17802
|
+
|
17803
|
+
# The name of the generator used to generate this suggestion. Format: `projects//
|
17804
|
+
# locations//generators/`.
|
17805
|
+
# Corresponds to the JSON property `sourceGenerator`
|
17806
|
+
# @return [String]
|
17807
|
+
attr_accessor :source_generator
|
17808
|
+
|
17809
|
+
def initialize(**args)
|
17810
|
+
update!(**args)
|
17811
|
+
end
|
17812
|
+
|
17813
|
+
# Update properties of this object
|
17814
|
+
def update!(**args)
|
17815
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
17816
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
17817
|
+
@source_generator = args[:source_generator] if args.key?(:source_generator)
|
17818
|
+
end
|
17819
|
+
end
|
17820
|
+
|
17821
|
+
# Suggestion generated using a Generator.
|
17822
|
+
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
17823
|
+
include Google::Apis::Core::Hashable
|
17824
|
+
|
17825
|
+
# Suggestion generated using free form generator.
|
17826
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
17827
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
|
17828
|
+
attr_accessor :free_form_suggestion
|
17829
|
+
|
17830
|
+
# Suggested summary of the conversation.
|
17831
|
+
# Corresponds to the JSON property `summarySuggestion`
|
17832
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SummarySuggestion]
|
17833
|
+
attr_accessor :summary_suggestion
|
17834
|
+
|
17835
|
+
def initialize(**args)
|
17836
|
+
update!(**args)
|
17837
|
+
end
|
17838
|
+
|
17839
|
+
# Update properties of this object
|
17840
|
+
def update!(**args)
|
17841
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
17842
|
+
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
17843
|
+
end
|
17844
|
+
end
|
17845
|
+
|
17466
17846
|
# Output only. Represents a notification sent to Pub/Sub subscribers for agent
|
17467
17847
|
# assistant events in a specific conversation.
|
17468
17848
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
|
@@ -20618,6 +20998,11 @@ module Google
|
|
20618
20998
|
# @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
|
20619
20999
|
attr_accessor :error
|
20620
21000
|
|
21001
|
+
# The response message for Conversations.GenerateSuggestions.
|
21002
|
+
# Corresponds to the JSON property `generateSuggestionsResponse`
|
21003
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse]
|
21004
|
+
attr_accessor :generate_suggestions_response
|
21005
|
+
|
20621
21006
|
# The response message for Participants.SuggestArticles.
|
20622
21007
|
# Corresponds to the JSON property `suggestArticlesResponse`
|
20623
21008
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
|
@@ -20655,6 +21040,7 @@ module Google
|
|
20655
21040
|
# Update properties of this object
|
20656
21041
|
def update!(**args)
|
20657
21042
|
@error = args[:error] if args.key?(:error)
|
21043
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
20658
21044
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
20659
21045
|
@suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
|
20660
21046
|
@suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_response)
|
@@ -20664,6 +21050,50 @@ module Google
|
|
20664
21050
|
end
|
20665
21051
|
end
|
20666
21052
|
|
21053
|
+
# Suggested summary of the conversation.
|
21054
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestion
|
21055
|
+
include Google::Apis::Core::Hashable
|
21056
|
+
|
21057
|
+
# Required. All the parts of generated summary.
|
21058
|
+
# Corresponds to the JSON property `summarySections`
|
21059
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection>]
|
21060
|
+
attr_accessor :summary_sections
|
21061
|
+
|
21062
|
+
def initialize(**args)
|
21063
|
+
update!(**args)
|
21064
|
+
end
|
21065
|
+
|
21066
|
+
# Update properties of this object
|
21067
|
+
def update!(**args)
|
21068
|
+
@summary_sections = args[:summary_sections] if args.key?(:summary_sections)
|
21069
|
+
end
|
21070
|
+
end
|
21071
|
+
|
21072
|
+
# A component of the generated summary.
|
21073
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
|
21074
|
+
include Google::Apis::Core::Hashable
|
21075
|
+
|
21076
|
+
# Required. Name of the section.
|
21077
|
+
# Corresponds to the JSON property `section`
|
21078
|
+
# @return [String]
|
21079
|
+
attr_accessor :section
|
21080
|
+
|
21081
|
+
# Required. Summary text for the section.
|
21082
|
+
# Corresponds to the JSON property `summary`
|
21083
|
+
# @return [String]
|
21084
|
+
attr_accessor :summary
|
21085
|
+
|
21086
|
+
def initialize(**args)
|
21087
|
+
update!(**args)
|
21088
|
+
end
|
21089
|
+
|
21090
|
+
# Update properties of this object
|
21091
|
+
def update!(**args)
|
21092
|
+
@section = args[:section] if args.key?(:section)
|
21093
|
+
@summary = args[:summary] if args.key?(:summary)
|
21094
|
+
end
|
21095
|
+
end
|
21096
|
+
|
20667
21097
|
# A wrapper of repeated TelephonyDtmf digits.
|
20668
21098
|
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
20669
21099
|
include Google::Apis::Core::Hashable
|
@@ -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.100.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.16.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250310"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1432,6 +1432,18 @@ module Google
|
|
1432
1432
|
include Google::Apis::Core::JsonObjectSupport
|
1433
1433
|
end
|
1434
1434
|
|
1435
|
+
class GoogleCloudDialogflowV2ConversationContextReference
|
1436
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1437
|
+
|
1438
|
+
include Google::Apis::Core::JsonObjectSupport
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
class GoogleCloudDialogflowV2ConversationContextReferenceContextContent
|
1442
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1443
|
+
|
1444
|
+
include Google::Apis::Core::JsonObjectSupport
|
1445
|
+
end
|
1446
|
+
|
1435
1447
|
class GoogleCloudDialogflowV2ConversationDataset
|
1436
1448
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1437
1449
|
|
@@ -1678,6 +1690,18 @@ module Google
|
|
1678
1690
|
include Google::Apis::Core::JsonObjectSupport
|
1679
1691
|
end
|
1680
1692
|
|
1693
|
+
class GoogleCloudDialogflowV2FreeFormContext
|
1694
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1695
|
+
|
1696
|
+
include Google::Apis::Core::JsonObjectSupport
|
1697
|
+
end
|
1698
|
+
|
1699
|
+
class GoogleCloudDialogflowV2FreeFormSuggestion
|
1700
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1701
|
+
|
1702
|
+
include Google::Apis::Core::JsonObjectSupport
|
1703
|
+
end
|
1704
|
+
|
1681
1705
|
class GoogleCloudDialogflowV2Fulfillment
|
1682
1706
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1683
1707
|
|
@@ -1744,6 +1768,24 @@ module Google
|
|
1744
1768
|
include Google::Apis::Core::JsonObjectSupport
|
1745
1769
|
end
|
1746
1770
|
|
1771
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsRequest
|
1772
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1773
|
+
|
1774
|
+
include Google::Apis::Core::JsonObjectSupport
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
1778
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1779
|
+
|
1780
|
+
include Google::Apis::Core::JsonObjectSupport
|
1781
|
+
end
|
1782
|
+
|
1783
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
1784
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1785
|
+
|
1786
|
+
include Google::Apis::Core::JsonObjectSupport
|
1787
|
+
end
|
1788
|
+
|
1747
1789
|
class GoogleCloudDialogflowV2Generator
|
1748
1790
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1749
1791
|
|
@@ -1912,6 +1954,18 @@ module Google
|
|
1912
1954
|
include Google::Apis::Core::JsonObjectSupport
|
1913
1955
|
end
|
1914
1956
|
|
1957
|
+
class GoogleCloudDialogflowV2IngestContextReferencesRequest
|
1958
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1959
|
+
|
1960
|
+
include Google::Apis::Core::JsonObjectSupport
|
1961
|
+
end
|
1962
|
+
|
1963
|
+
class GoogleCloudDialogflowV2IngestContextReferencesResponse
|
1964
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1965
|
+
|
1966
|
+
include Google::Apis::Core::JsonObjectSupport
|
1967
|
+
end
|
1968
|
+
|
1915
1969
|
class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata
|
1916
1970
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1917
1971
|
|
@@ -2818,12 +2872,36 @@ module Google
|
|
2818
2872
|
include Google::Apis::Core::JsonObjectSupport
|
2819
2873
|
end
|
2820
2874
|
|
2875
|
+
class GoogleCloudDialogflowV2beta1FreeFormSuggestion
|
2876
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2877
|
+
|
2878
|
+
include Google::Apis::Core::JsonObjectSupport
|
2879
|
+
end
|
2880
|
+
|
2821
2881
|
class GoogleCloudDialogflowV2beta1GcsDestination
|
2822
2882
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2823
2883
|
|
2824
2884
|
include Google::Apis::Core::JsonObjectSupport
|
2825
2885
|
end
|
2826
2886
|
|
2887
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
2888
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2889
|
+
|
2890
|
+
include Google::Apis::Core::JsonObjectSupport
|
2891
|
+
end
|
2892
|
+
|
2893
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
2894
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2895
|
+
|
2896
|
+
include Google::Apis::Core::JsonObjectSupport
|
2897
|
+
end
|
2898
|
+
|
2899
|
+
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
2900
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2901
|
+
|
2902
|
+
include Google::Apis::Core::JsonObjectSupport
|
2903
|
+
end
|
2904
|
+
|
2827
2905
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
|
2828
2906
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2829
2907
|
|
@@ -3334,6 +3412,18 @@ module Google
|
|
3334
3412
|
include Google::Apis::Core::JsonObjectSupport
|
3335
3413
|
end
|
3336
3414
|
|
3415
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestion
|
3416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3417
|
+
|
3418
|
+
include Google::Apis::Core::JsonObjectSupport
|
3419
|
+
end
|
3420
|
+
|
3421
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
|
3422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3423
|
+
|
3424
|
+
include Google::Apis::Core::JsonObjectSupport
|
3425
|
+
end
|
3426
|
+
|
3337
3427
|
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
3338
3428
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
3339
3429
|
|
@@ -5759,6 +5849,8 @@ module Google
|
|
5759
5849
|
property :conversation_profile, as: 'conversationProfile'
|
5760
5850
|
property :conversation_stage, as: 'conversationStage'
|
5761
5851
|
property :end_time, as: 'endTime'
|
5852
|
+
hash :ingested_context_references, as: 'ingestedContextReferences', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference::Representation
|
5853
|
+
|
5762
5854
|
property :lifecycle_state, as: 'lifecycleState'
|
5763
5855
|
property :name, as: 'name'
|
5764
5856
|
property :phone_number, as: 'phoneNumber', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationPhoneNumber, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationPhoneNumber::Representation
|
@@ -5777,6 +5869,26 @@ module Google
|
|
5777
5869
|
end
|
5778
5870
|
end
|
5779
5871
|
|
5872
|
+
class GoogleCloudDialogflowV2ConversationContextReference
|
5873
|
+
# @private
|
5874
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5875
|
+
collection :context_contents, as: 'contextContents', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReferenceContextContent, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReferenceContextContent::Representation
|
5876
|
+
|
5877
|
+
property :create_time, as: 'createTime'
|
5878
|
+
property :language_code, as: 'languageCode'
|
5879
|
+
property :update_mode, as: 'updateMode'
|
5880
|
+
end
|
5881
|
+
end
|
5882
|
+
|
5883
|
+
class GoogleCloudDialogflowV2ConversationContextReferenceContextContent
|
5884
|
+
# @private
|
5885
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5886
|
+
property :content, as: 'content'
|
5887
|
+
property :content_format, as: 'contentFormat'
|
5888
|
+
property :ingestion_time, as: 'ingestionTime'
|
5889
|
+
end
|
5890
|
+
end
|
5891
|
+
|
5780
5892
|
class GoogleCloudDialogflowV2ConversationDataset
|
5781
5893
|
# @private
|
5782
5894
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6215,6 +6327,20 @@ module Google
|
|
6215
6327
|
end
|
6216
6328
|
end
|
6217
6329
|
|
6330
|
+
class GoogleCloudDialogflowV2FreeFormContext
|
6331
|
+
# @private
|
6332
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6333
|
+
property :text, as: 'text'
|
6334
|
+
end
|
6335
|
+
end
|
6336
|
+
|
6337
|
+
class GoogleCloudDialogflowV2FreeFormSuggestion
|
6338
|
+
# @private
|
6339
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6340
|
+
property :response, as: 'response'
|
6341
|
+
end
|
6342
|
+
end
|
6343
|
+
|
6218
6344
|
class GoogleCloudDialogflowV2Fulfillment
|
6219
6345
|
# @private
|
6220
6346
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6263,6 +6389,8 @@ module Google
|
|
6263
6389
|
class GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
|
6264
6390
|
# @private
|
6265
6391
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6392
|
+
hash :context_references, as: 'contextReferences', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference::Representation
|
6393
|
+
|
6266
6394
|
property :conversation_context, as: 'conversationContext', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext::Representation
|
6267
6395
|
|
6268
6396
|
property :generator, as: 'generator', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Generator::Representation
|
@@ -6319,14 +6447,44 @@ module Google
|
|
6319
6447
|
end
|
6320
6448
|
end
|
6321
6449
|
|
6450
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsRequest
|
6451
|
+
# @private
|
6452
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6453
|
+
property :latest_message, as: 'latestMessage'
|
6454
|
+
collection :trigger_events, as: 'triggerEvents'
|
6455
|
+
end
|
6456
|
+
end
|
6457
|
+
|
6458
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
6459
|
+
# @private
|
6460
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6461
|
+
collection :generator_suggestion_answers, as: 'generatorSuggestionAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer::Representation
|
6462
|
+
|
6463
|
+
property :latest_message, as: 'latestMessage'
|
6464
|
+
end
|
6465
|
+
end
|
6466
|
+
|
6467
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
6468
|
+
# @private
|
6469
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6470
|
+
property :answer_record, as: 'answerRecord'
|
6471
|
+
property :generator_suggestion, as: 'generatorSuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion::Representation
|
6472
|
+
|
6473
|
+
property :source_generator, as: 'sourceGenerator'
|
6474
|
+
end
|
6475
|
+
end
|
6476
|
+
|
6322
6477
|
class GoogleCloudDialogflowV2Generator
|
6323
6478
|
# @private
|
6324
6479
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6325
6480
|
property :create_time, as: 'createTime'
|
6326
6481
|
property :description, as: 'description'
|
6482
|
+
property :free_form_context, as: 'freeFormContext', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormContext, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormContext::Representation
|
6483
|
+
|
6327
6484
|
property :inference_parameter, as: 'inferenceParameter', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter::Representation
|
6328
6485
|
|
6329
6486
|
property :name, as: 'name'
|
6487
|
+
property :published_model, as: 'publishedModel'
|
6330
6488
|
property :summarization_context, as: 'summarizationContext', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext::Representation
|
6331
6489
|
|
6332
6490
|
property :trigger_event, as: 'triggerEvent'
|
@@ -6337,6 +6495,8 @@ module Google
|
|
6337
6495
|
class GoogleCloudDialogflowV2GeneratorSuggestion
|
6338
6496
|
# @private
|
6339
6497
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6498
|
+
property :free_form_suggestion, as: 'freeFormSuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormSuggestion::Representation
|
6499
|
+
|
6340
6500
|
property :summary_suggestion, as: 'summarySuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestion::Representation
|
6341
6501
|
|
6342
6502
|
end
|
@@ -6593,6 +6753,22 @@ module Google
|
|
6593
6753
|
end
|
6594
6754
|
end
|
6595
6755
|
|
6756
|
+
class GoogleCloudDialogflowV2IngestContextReferencesRequest
|
6757
|
+
# @private
|
6758
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6759
|
+
hash :context_references, as: 'contextReferences', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference::Representation
|
6760
|
+
|
6761
|
+
end
|
6762
|
+
end
|
6763
|
+
|
6764
|
+
class GoogleCloudDialogflowV2IngestContextReferencesResponse
|
6765
|
+
# @private
|
6766
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6767
|
+
hash :ingested_context_references, as: 'ingestedContextReferences', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference::Representation
|
6768
|
+
|
6769
|
+
end
|
6770
|
+
end
|
6771
|
+
|
6596
6772
|
class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata
|
6597
6773
|
# @private
|
6598
6774
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7793,6 +7969,8 @@ module Google
|
|
7793
7969
|
class Representation < Google::Apis::Core::JsonRepresentation
|
7794
7970
|
property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation
|
7795
7971
|
|
7972
|
+
property :generate_suggestions_response, as: 'generateSuggestionsResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse::Representation
|
7973
|
+
|
7796
7974
|
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse::Representation
|
7797
7975
|
|
7798
7976
|
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse::Representation
|
@@ -8111,6 +8289,13 @@ module Google
|
|
8111
8289
|
end
|
8112
8290
|
end
|
8113
8291
|
|
8292
|
+
class GoogleCloudDialogflowV2beta1FreeFormSuggestion
|
8293
|
+
# @private
|
8294
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8295
|
+
property :response, as: 'response'
|
8296
|
+
end
|
8297
|
+
end
|
8298
|
+
|
8114
8299
|
class GoogleCloudDialogflowV2beta1GcsDestination
|
8115
8300
|
# @private
|
8116
8301
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8118,6 +8303,35 @@ module Google
|
|
8118
8303
|
end
|
8119
8304
|
end
|
8120
8305
|
|
8306
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
8307
|
+
# @private
|
8308
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8309
|
+
collection :generator_suggestion_answers, as: 'generatorSuggestionAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer::Representation
|
8310
|
+
|
8311
|
+
property :latest_message, as: 'latestMessage'
|
8312
|
+
end
|
8313
|
+
end
|
8314
|
+
|
8315
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
8316
|
+
# @private
|
8317
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8318
|
+
property :answer_record, as: 'answerRecord'
|
8319
|
+
property :generator_suggestion, as: 'generatorSuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GeneratorSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GeneratorSuggestion::Representation
|
8320
|
+
|
8321
|
+
property :source_generator, as: 'sourceGenerator'
|
8322
|
+
end
|
8323
|
+
end
|
8324
|
+
|
8325
|
+
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
8326
|
+
# @private
|
8327
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
8328
|
+
property :free_form_suggestion, as: 'freeFormSuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1FreeFormSuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1FreeFormSuggestion::Representation
|
8329
|
+
|
8330
|
+
property :summary_suggestion, as: 'summarySuggestion', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SummarySuggestion, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SummarySuggestion::Representation
|
8331
|
+
|
8332
|
+
end
|
8333
|
+
end
|
8334
|
+
|
8121
8335
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
|
8122
8336
|
# @private
|
8123
8337
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8995,6 +9209,8 @@ module Google
|
|
8995
9209
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8996
9210
|
property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation
|
8997
9211
|
|
9212
|
+
property :generate_suggestions_response, as: 'generateSuggestionsResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse::Representation
|
9213
|
+
|
8998
9214
|
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestArticlesResponse::Representation
|
8999
9215
|
|
9000
9216
|
property :suggest_dialogflow_assists_response, as: 'suggestDialogflowAssistsResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse::Representation
|
@@ -9010,6 +9226,22 @@ module Google
|
|
9010
9226
|
end
|
9011
9227
|
end
|
9012
9228
|
|
9229
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestion
|
9230
|
+
# @private
|
9231
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9232
|
+
collection :summary_sections, as: 'summarySections', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection::Representation
|
9233
|
+
|
9234
|
+
end
|
9235
|
+
end
|
9236
|
+
|
9237
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
|
9238
|
+
# @private
|
9239
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
9240
|
+
property :section, as: 'section'
|
9241
|
+
property :summary, as: 'summary'
|
9242
|
+
end
|
9243
|
+
end
|
9244
|
+
|
9013
9245
|
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
9014
9246
|
# @private
|
9015
9247
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4271,6 +4271,43 @@ module Google
|
|
4271
4271
|
execute_or_queue_command(command, &block)
|
4272
4272
|
end
|
4273
4273
|
|
4274
|
+
# Generates all the suggestions using generators configured in the conversation
|
4275
|
+
# profile. A generator is used only if its trigger event is matched.
|
4276
|
+
# @param [String] conversation
|
4277
|
+
# Required. The conversation for which the suggestions are generated. Format: `
|
4278
|
+
# projects//locations//conversations/`. The conversation must be created with a
|
4279
|
+
# conversation profile which has generators configured in it to be able to get
|
4280
|
+
# suggestions.
|
4281
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest] google_cloud_dialogflow_v2_generate_suggestions_request_object
|
4282
|
+
# @param [String] fields
|
4283
|
+
# Selector specifying which fields to include in a partial response.
|
4284
|
+
# @param [String] quota_user
|
4285
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4286
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4287
|
+
# @param [Google::Apis::RequestOptions] options
|
4288
|
+
# Request-specific options
|
4289
|
+
#
|
4290
|
+
# @yield [result, err] Result & error if block supplied
|
4291
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse] parsed result object
|
4292
|
+
# @yieldparam err [StandardError] error object if request failed
|
4293
|
+
#
|
4294
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
|
4295
|
+
#
|
4296
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4297
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4298
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4299
|
+
def generate_project_conversation_suggestion(conversation, google_cloud_dialogflow_v2_generate_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4300
|
+
command = make_simple_command(:post, 'v2/{+conversation}/suggestions:generate', options)
|
4301
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest::Representation
|
4302
|
+
command.request_object = google_cloud_dialogflow_v2_generate_suggestions_request_object
|
4303
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse::Representation
|
4304
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
4305
|
+
command.params['conversation'] = conversation unless conversation.nil?
|
4306
|
+
command.query['fields'] = fields unless fields.nil?
|
4307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4308
|
+
execute_or_queue_command(command, &block)
|
4309
|
+
end
|
4310
|
+
|
4274
4311
|
# Get answers for the given query based on knowledge documents.
|
4275
4312
|
# @param [String] conversation
|
4276
4313
|
# Optional. The conversation (between human agent and end user) where the search
|
@@ -8520,6 +8557,40 @@ module Google
|
|
8520
8557
|
execute_or_queue_command(command, &block)
|
8521
8558
|
end
|
8522
8559
|
|
8560
|
+
# Data ingestion API. Ingests context references for an existing conversation.
|
8561
|
+
# @param [String] conversation
|
8562
|
+
# Required. Resource identifier of the conversation to ingest context
|
8563
|
+
# information for. Format: `projects//locations//conversations/`.
|
8564
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesRequest] google_cloud_dialogflow_v2_ingest_context_references_request_object
|
8565
|
+
# @param [String] fields
|
8566
|
+
# Selector specifying which fields to include in a partial response.
|
8567
|
+
# @param [String] quota_user
|
8568
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8569
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8570
|
+
# @param [Google::Apis::RequestOptions] options
|
8571
|
+
# Request-specific options
|
8572
|
+
#
|
8573
|
+
# @yield [result, err] Result & error if block supplied
|
8574
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesResponse] parsed result object
|
8575
|
+
# @yieldparam err [StandardError] error object if request failed
|
8576
|
+
#
|
8577
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesResponse]
|
8578
|
+
#
|
8579
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8580
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8581
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8582
|
+
def ingest_project_location_conversation_context_references(conversation, google_cloud_dialogflow_v2_ingest_context_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
8583
|
+
command = make_simple_command(:post, 'v2/{+conversation}:ingestContextReferences', options)
|
8584
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesRequest::Representation
|
8585
|
+
command.request_object = google_cloud_dialogflow_v2_ingest_context_references_request_object
|
8586
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesResponse::Representation
|
8587
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IngestContextReferencesResponse
|
8588
|
+
command.params['conversation'] = conversation unless conversation.nil?
|
8589
|
+
command.query['fields'] = fields unless fields.nil?
|
8590
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8591
|
+
execute_or_queue_command(command, &block)
|
8592
|
+
end
|
8593
|
+
|
8523
8594
|
# Returns the list of all conversations in the specified project.
|
8524
8595
|
# @param [String] parent
|
8525
8596
|
# Required. The project from which to list all conversation. Format: `projects//
|
@@ -8928,6 +8999,43 @@ module Google
|
|
8928
8999
|
execute_or_queue_command(command, &block)
|
8929
9000
|
end
|
8930
9001
|
|
9002
|
+
# Generates all the suggestions using generators configured in the conversation
|
9003
|
+
# profile. A generator is used only if its trigger event is matched.
|
9004
|
+
# @param [String] conversation
|
9005
|
+
# Required. The conversation for which the suggestions are generated. Format: `
|
9006
|
+
# projects//locations//conversations/`. The conversation must be created with a
|
9007
|
+
# conversation profile which has generators configured in it to be able to get
|
9008
|
+
# suggestions.
|
9009
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest] google_cloud_dialogflow_v2_generate_suggestions_request_object
|
9010
|
+
# @param [String] fields
|
9011
|
+
# Selector specifying which fields to include in a partial response.
|
9012
|
+
# @param [String] quota_user
|
9013
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9014
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9015
|
+
# @param [Google::Apis::RequestOptions] options
|
9016
|
+
# Request-specific options
|
9017
|
+
#
|
9018
|
+
# @yield [result, err] Result & error if block supplied
|
9019
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse] parsed result object
|
9020
|
+
# @yieldparam err [StandardError] error object if request failed
|
9021
|
+
#
|
9022
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
|
9023
|
+
#
|
9024
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9025
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9026
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9027
|
+
def generate_project_location_conversation_suggestion(conversation, google_cloud_dialogflow_v2_generate_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
9028
|
+
command = make_simple_command(:post, 'v2/{+conversation}/suggestions:generate', options)
|
9029
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsRequest::Representation
|
9030
|
+
command.request_object = google_cloud_dialogflow_v2_generate_suggestions_request_object
|
9031
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse::Representation
|
9032
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
9033
|
+
command.params['conversation'] = conversation unless conversation.nil?
|
9034
|
+
command.query['fields'] = fields unless fields.nil?
|
9035
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9036
|
+
execute_or_queue_command(command, &block)
|
9037
|
+
end
|
9038
|
+
|
8931
9039
|
# Get answers for the given query based on knowledge documents.
|
8932
9040
|
# @param [String] conversation
|
8933
9041
|
# Optional. The conversation (between human agent and end user) where the search
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.100.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-16 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.100.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|