google-apis-dialogflow_v2beta1 0.97.0 → 0.98.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/CHANGELOG.md +4 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +430 -0
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +232 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +108 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97f192960c0cc076a3bc35192df064c4e3566342972c9caa7c1759f1553fee2e
|
4
|
+
data.tar.gz: 5ea063463467f1cab964ea764c0e43cab3b6f8334fda056c5c6ebb0a03bbc15b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e8ff48b93e06189d3d20da7104687332898c7701b3206530943165b9661b006664c84973047259382503f91032ba9032ec38c1236204c8247bbbccda0a1a2a
|
7
|
+
data.tar.gz: 355886561cb365fd25aa5c57625e99fec1d36a6c0a501cf529141f3bdba9514b7c48cf095657b12c045f19b75dd9883427d0a65156e0a25fa1e9bc9955635566
|
data/CHANGELOG.md
CHANGED
@@ -8425,6 +8425,25 @@ module Google
|
|
8425
8425
|
end
|
8426
8426
|
end
|
8427
8427
|
|
8428
|
+
# Suggestion generated using free form generator.
|
8429
|
+
class GoogleCloudDialogflowV2FreeFormSuggestion
|
8430
|
+
include Google::Apis::Core::Hashable
|
8431
|
+
|
8432
|
+
# Required. Free form suggestion.
|
8433
|
+
# Corresponds to the JSON property `response`
|
8434
|
+
# @return [String]
|
8435
|
+
attr_accessor :response
|
8436
|
+
|
8437
|
+
def initialize(**args)
|
8438
|
+
update!(**args)
|
8439
|
+
end
|
8440
|
+
|
8441
|
+
# Update properties of this object
|
8442
|
+
def update!(**args)
|
8443
|
+
@response = args[:response] if args.key?(:response)
|
8444
|
+
end
|
8445
|
+
end
|
8446
|
+
|
8428
8447
|
# Google Cloud Storage location for the output.
|
8429
8448
|
class GoogleCloudDialogflowV2GcsDestination
|
8430
8449
|
include Google::Apis::Core::Hashable
|
@@ -8446,6 +8465,90 @@ module Google
|
|
8446
8465
|
end
|
8447
8466
|
end
|
8448
8467
|
|
8468
|
+
# The response message for Conversations.GenerateSuggestions.
|
8469
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
8470
|
+
include Google::Apis::Core::Hashable
|
8471
|
+
|
8472
|
+
# The answers generated for the conversation based on context.
|
8473
|
+
# Corresponds to the JSON property `generatorSuggestionAnswers`
|
8474
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
|
8475
|
+
attr_accessor :generator_suggestion_answers
|
8476
|
+
|
8477
|
+
# The name of the latest conversation message used as context for compiling
|
8478
|
+
# suggestion. Format: `projects//locations//conversations//messages/`.
|
8479
|
+
# Corresponds to the JSON property `latestMessage`
|
8480
|
+
# @return [String]
|
8481
|
+
attr_accessor :latest_message
|
8482
|
+
|
8483
|
+
def initialize(**args)
|
8484
|
+
update!(**args)
|
8485
|
+
end
|
8486
|
+
|
8487
|
+
# Update properties of this object
|
8488
|
+
def update!(**args)
|
8489
|
+
@generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
|
8490
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
8491
|
+
end
|
8492
|
+
end
|
8493
|
+
|
8494
|
+
# A GeneratorSuggestion answer.
|
8495
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
8496
|
+
include Google::Apis::Core::Hashable
|
8497
|
+
|
8498
|
+
# Answer record that uniquely identifies the suggestion. This can be used to
|
8499
|
+
# provide suggestion feedback.
|
8500
|
+
# Corresponds to the JSON property `answerRecord`
|
8501
|
+
# @return [String]
|
8502
|
+
attr_accessor :answer_record
|
8503
|
+
|
8504
|
+
# Suggestion generated using a Generator.
|
8505
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
8506
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GeneratorSuggestion]
|
8507
|
+
attr_accessor :generator_suggestion
|
8508
|
+
|
8509
|
+
# The name of the generator used to generate this suggestion. Format: `projects//
|
8510
|
+
# locations//generators/`.
|
8511
|
+
# Corresponds to the JSON property `sourceGenerator`
|
8512
|
+
# @return [String]
|
8513
|
+
attr_accessor :source_generator
|
8514
|
+
|
8515
|
+
def initialize(**args)
|
8516
|
+
update!(**args)
|
8517
|
+
end
|
8518
|
+
|
8519
|
+
# Update properties of this object
|
8520
|
+
def update!(**args)
|
8521
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
8522
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
8523
|
+
@source_generator = args[:source_generator] if args.key?(:source_generator)
|
8524
|
+
end
|
8525
|
+
end
|
8526
|
+
|
8527
|
+
# Suggestion generated using a Generator.
|
8528
|
+
class GoogleCloudDialogflowV2GeneratorSuggestion
|
8529
|
+
include Google::Apis::Core::Hashable
|
8530
|
+
|
8531
|
+
# Suggestion generated using free form generator.
|
8532
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
8533
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FreeFormSuggestion]
|
8534
|
+
attr_accessor :free_form_suggestion
|
8535
|
+
|
8536
|
+
# Suggested summary of the conversation.
|
8537
|
+
# Corresponds to the JSON property `summarySuggestion`
|
8538
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SummarySuggestion]
|
8539
|
+
attr_accessor :summary_suggestion
|
8540
|
+
|
8541
|
+
def initialize(**args)
|
8542
|
+
update!(**args)
|
8543
|
+
end
|
8544
|
+
|
8545
|
+
# Update properties of this object
|
8546
|
+
def update!(**args)
|
8547
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
8548
|
+
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
8549
|
+
end
|
8550
|
+
end
|
8551
|
+
|
8449
8552
|
# Represents a notification sent to Cloud Pub/Sub subscribers for human agent
|
8450
8553
|
# assistant events in a specific conversation.
|
8451
8554
|
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
@@ -10848,6 +10951,11 @@ module Google
|
|
10848
10951
|
# @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus]
|
10849
10952
|
attr_accessor :error
|
10850
10953
|
|
10954
|
+
# The response message for Conversations.GenerateSuggestions.
|
10955
|
+
# Corresponds to the JSON property `generateSuggestionsResponse`
|
10956
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
|
10957
|
+
attr_accessor :generate_suggestions_response
|
10958
|
+
|
10851
10959
|
# The response message for Participants.SuggestArticles.
|
10852
10960
|
# Corresponds to the JSON property `suggestArticlesResponse`
|
10853
10961
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse]
|
@@ -10875,6 +10983,7 @@ module Google
|
|
10875
10983
|
# Update properties of this object
|
10876
10984
|
def update!(**args)
|
10877
10985
|
@error = args[:error] if args.key?(:error)
|
10986
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
10878
10987
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
10879
10988
|
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
10880
10989
|
@suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
|
@@ -10882,6 +10991,50 @@ module Google
|
|
10882
10991
|
end
|
10883
10992
|
end
|
10884
10993
|
|
10994
|
+
# Suggested summary of the conversation.
|
10995
|
+
class GoogleCloudDialogflowV2SummarySuggestion
|
10996
|
+
include Google::Apis::Core::Hashable
|
10997
|
+
|
10998
|
+
# Required. All the parts of generated summary.
|
10999
|
+
# Corresponds to the JSON property `summarySections`
|
11000
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SummarySuggestionSummarySection>]
|
11001
|
+
attr_accessor :summary_sections
|
11002
|
+
|
11003
|
+
def initialize(**args)
|
11004
|
+
update!(**args)
|
11005
|
+
end
|
11006
|
+
|
11007
|
+
# Update properties of this object
|
11008
|
+
def update!(**args)
|
11009
|
+
@summary_sections = args[:summary_sections] if args.key?(:summary_sections)
|
11010
|
+
end
|
11011
|
+
end
|
11012
|
+
|
11013
|
+
# A component of the generated summary.
|
11014
|
+
class GoogleCloudDialogflowV2SummarySuggestionSummarySection
|
11015
|
+
include Google::Apis::Core::Hashable
|
11016
|
+
|
11017
|
+
# Required. Name of the section.
|
11018
|
+
# Corresponds to the JSON property `section`
|
11019
|
+
# @return [String]
|
11020
|
+
attr_accessor :section
|
11021
|
+
|
11022
|
+
# Required. Summary text for the section.
|
11023
|
+
# Corresponds to the JSON property `summary`
|
11024
|
+
# @return [String]
|
11025
|
+
attr_accessor :summary
|
11026
|
+
|
11027
|
+
def initialize(**args)
|
11028
|
+
update!(**args)
|
11029
|
+
end
|
11030
|
+
|
11031
|
+
# Update properties of this object
|
11032
|
+
def update!(**args)
|
11033
|
+
@section = args[:section] if args.key?(:section)
|
11034
|
+
@summary = args[:summary] if args.key?(:summary)
|
11035
|
+
end
|
11036
|
+
end
|
11037
|
+
|
10885
11038
|
# Metadata for a ConversationModels.UndeployConversationModel operation.
|
10886
11039
|
class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
|
10887
11040
|
include Google::Apis::Core::Hashable
|
@@ -12508,6 +12661,11 @@ module Google
|
|
12508
12661
|
# @return [String]
|
12509
12662
|
attr_accessor :end_time
|
12510
12663
|
|
12664
|
+
# Output only. The context reference updates provided by external systems.
|
12665
|
+
# Corresponds to the JSON property `ingestedContextReferences`
|
12666
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>]
|
12667
|
+
attr_accessor :ingested_context_references
|
12668
|
+
|
12511
12669
|
# Output only. The current state of the Conversation.
|
12512
12670
|
# Corresponds to the JSON property `lifecycleState`
|
12513
12671
|
# @return [String]
|
@@ -12545,6 +12703,7 @@ module Google
|
|
12545
12703
|
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
12546
12704
|
@conversation_stage = args[:conversation_stage] if args.key?(:conversation_stage)
|
12547
12705
|
@end_time = args[:end_time] if args.key?(:end_time)
|
12706
|
+
@ingested_context_references = args[:ingested_context_references] if args.key?(:ingested_context_references)
|
12548
12707
|
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
12549
12708
|
@name = args[:name] if args.key?(:name)
|
12550
12709
|
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
@@ -12572,6 +12731,76 @@ module Google
|
|
12572
12731
|
end
|
12573
12732
|
end
|
12574
12733
|
|
12734
|
+
# Represents a piece of ingested context information.
|
12735
|
+
class GoogleCloudDialogflowV2beta1ConversationContextReference
|
12736
|
+
include Google::Apis::Core::Hashable
|
12737
|
+
|
12738
|
+
# Required. The list of content updates for a context reference.
|
12739
|
+
# Corresponds to the JSON property `contextContents`
|
12740
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent>]
|
12741
|
+
attr_accessor :context_contents
|
12742
|
+
|
12743
|
+
# Output only. The time the context reference was first created.
|
12744
|
+
# Corresponds to the JSON property `createTime`
|
12745
|
+
# @return [String]
|
12746
|
+
attr_accessor :create_time
|
12747
|
+
|
12748
|
+
# Optional. The language of the information ingested, defaults to "en-US" if not
|
12749
|
+
# set.
|
12750
|
+
# Corresponds to the JSON property `languageCode`
|
12751
|
+
# @return [String]
|
12752
|
+
attr_accessor :language_code
|
12753
|
+
|
12754
|
+
# Required. The mode in which context reference contents are updated.
|
12755
|
+
# Corresponds to the JSON property `updateMode`
|
12756
|
+
# @return [String]
|
12757
|
+
attr_accessor :update_mode
|
12758
|
+
|
12759
|
+
def initialize(**args)
|
12760
|
+
update!(**args)
|
12761
|
+
end
|
12762
|
+
|
12763
|
+
# Update properties of this object
|
12764
|
+
def update!(**args)
|
12765
|
+
@context_contents = args[:context_contents] if args.key?(:context_contents)
|
12766
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
12767
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
12768
|
+
@update_mode = args[:update_mode] if args.key?(:update_mode)
|
12769
|
+
end
|
12770
|
+
end
|
12771
|
+
|
12772
|
+
# Contents ingested.
|
12773
|
+
class GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent
|
12774
|
+
include Google::Apis::Core::Hashable
|
12775
|
+
|
12776
|
+
# Required. The information ingested in a single request.
|
12777
|
+
# Corresponds to the JSON property `content`
|
12778
|
+
# @return [String]
|
12779
|
+
attr_accessor :content
|
12780
|
+
|
12781
|
+
# Required. The format of the ingested string.
|
12782
|
+
# Corresponds to the JSON property `contentFormat`
|
12783
|
+
# @return [String]
|
12784
|
+
attr_accessor :content_format
|
12785
|
+
|
12786
|
+
# Output only. The time when this information was incorporated into the relevant
|
12787
|
+
# context reference.
|
12788
|
+
# Corresponds to the JSON property `ingestionTime`
|
12789
|
+
# @return [String]
|
12790
|
+
attr_accessor :ingestion_time
|
12791
|
+
|
12792
|
+
def initialize(**args)
|
12793
|
+
update!(**args)
|
12794
|
+
end
|
12795
|
+
|
12796
|
+
# Update properties of this object
|
12797
|
+
def update!(**args)
|
12798
|
+
@content = args[:content] if args.key?(:content)
|
12799
|
+
@content_format = args[:content_format] if args.key?(:content_format)
|
12800
|
+
@ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
|
12801
|
+
end
|
12802
|
+
end
|
12803
|
+
|
12575
12804
|
# Represents a notification sent to Pub/Sub subscribers for conversation
|
12576
12805
|
# lifecycle events.
|
12577
12806
|
class GoogleCloudDialogflowV2beta1ConversationEvent
|
@@ -13717,6 +13946,44 @@ module Google
|
|
13717
13946
|
end
|
13718
13947
|
end
|
13719
13948
|
|
13949
|
+
# Free form generator context that customer can configure.
|
13950
|
+
class GoogleCloudDialogflowV2beta1FreeFormContext
|
13951
|
+
include Google::Apis::Core::Hashable
|
13952
|
+
|
13953
|
+
# Optional. Free form text input to LLM.
|
13954
|
+
# Corresponds to the JSON property `text`
|
13955
|
+
# @return [String]
|
13956
|
+
attr_accessor :text
|
13957
|
+
|
13958
|
+
def initialize(**args)
|
13959
|
+
update!(**args)
|
13960
|
+
end
|
13961
|
+
|
13962
|
+
# Update properties of this object
|
13963
|
+
def update!(**args)
|
13964
|
+
@text = args[:text] if args.key?(:text)
|
13965
|
+
end
|
13966
|
+
end
|
13967
|
+
|
13968
|
+
# Suggestion generated using free form generator.
|
13969
|
+
class GoogleCloudDialogflowV2beta1FreeFormSuggestion
|
13970
|
+
include Google::Apis::Core::Hashable
|
13971
|
+
|
13972
|
+
# Required. Free form suggestion.
|
13973
|
+
# Corresponds to the JSON property `response`
|
13974
|
+
# @return [String]
|
13975
|
+
attr_accessor :response
|
13976
|
+
|
13977
|
+
def initialize(**args)
|
13978
|
+
update!(**args)
|
13979
|
+
end
|
13980
|
+
|
13981
|
+
# Update properties of this object
|
13982
|
+
def update!(**args)
|
13983
|
+
@response = args[:response] if args.key?(:response)
|
13984
|
+
end
|
13985
|
+
end
|
13986
|
+
|
13720
13987
|
# By default, your agent responds to a matched intent with a static response. As
|
13721
13988
|
# an alternative, you can provide a more dynamic response by using fulfillment.
|
13722
13989
|
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
@@ -13912,6 +14179,14 @@ module Google
|
|
13912
14179
|
class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest
|
13913
14180
|
include Google::Apis::Core::Hashable
|
13914
14181
|
|
14182
|
+
# Optional. A section of ingested context information. The key is the name of
|
14183
|
+
# the context reference and the value contains the contents of the context
|
14184
|
+
# reference. The key is used to incorporate ingested context references to
|
14185
|
+
# enhance the generator.
|
14186
|
+
# Corresponds to the JSON property `contextReferences`
|
14187
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>]
|
14188
|
+
attr_accessor :context_references
|
14189
|
+
|
13915
14190
|
# Context of the conversation, including transcripts.
|
13916
14191
|
# Corresponds to the JSON property `conversationContext`
|
13917
14192
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext]
|
@@ -13940,6 +14215,7 @@ module Google
|
|
13940
14215
|
|
13941
14216
|
# Update properties of this object
|
13942
14217
|
def update!(**args)
|
14218
|
+
@context_references = args[:context_references] if args.key?(:context_references)
|
13943
14219
|
@conversation_context = args[:conversation_context] if args.key?(:conversation_context)
|
13944
14220
|
@generator = args[:generator] if args.key?(:generator)
|
13945
14221
|
@generator_name = args[:generator_name] if args.key?(:generator_name)
|
@@ -14102,6 +14378,92 @@ module Google
|
|
14102
14378
|
end
|
14103
14379
|
end
|
14104
14380
|
|
14381
|
+
# The request message for Conversations.GenerateSuggestions.
|
14382
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest
|
14383
|
+
include Google::Apis::Core::Hashable
|
14384
|
+
|
14385
|
+
# Optional. The name of the latest conversation message for which the request is
|
14386
|
+
# triggered. Format: `projects//locations//conversations//messages/`.
|
14387
|
+
# Corresponds to the JSON property `latestMessage`
|
14388
|
+
# @return [String]
|
14389
|
+
attr_accessor :latest_message
|
14390
|
+
|
14391
|
+
# Optional. A list of trigger events. Only generators configured in the
|
14392
|
+
# conversation_profile whose trigger_event is listed here will be triggered.
|
14393
|
+
# Corresponds to the JSON property `triggerEvents`
|
14394
|
+
# @return [Array<String>]
|
14395
|
+
attr_accessor :trigger_events
|
14396
|
+
|
14397
|
+
def initialize(**args)
|
14398
|
+
update!(**args)
|
14399
|
+
end
|
14400
|
+
|
14401
|
+
# Update properties of this object
|
14402
|
+
def update!(**args)
|
14403
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
14404
|
+
@trigger_events = args[:trigger_events] if args.key?(:trigger_events)
|
14405
|
+
end
|
14406
|
+
end
|
14407
|
+
|
14408
|
+
# The response message for Conversations.GenerateSuggestions.
|
14409
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
14410
|
+
include Google::Apis::Core::Hashable
|
14411
|
+
|
14412
|
+
# The answers generated for the conversation based on context.
|
14413
|
+
# Corresponds to the JSON property `generatorSuggestionAnswers`
|
14414
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
|
14415
|
+
attr_accessor :generator_suggestion_answers
|
14416
|
+
|
14417
|
+
# The name of the latest conversation message used as context for compiling
|
14418
|
+
# suggestion. Format: `projects//locations//conversations//messages/`.
|
14419
|
+
# Corresponds to the JSON property `latestMessage`
|
14420
|
+
# @return [String]
|
14421
|
+
attr_accessor :latest_message
|
14422
|
+
|
14423
|
+
def initialize(**args)
|
14424
|
+
update!(**args)
|
14425
|
+
end
|
14426
|
+
|
14427
|
+
# Update properties of this object
|
14428
|
+
def update!(**args)
|
14429
|
+
@generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
|
14430
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
14431
|
+
end
|
14432
|
+
end
|
14433
|
+
|
14434
|
+
# A GeneratorSuggestion answer.
|
14435
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
14436
|
+
include Google::Apis::Core::Hashable
|
14437
|
+
|
14438
|
+
# Answer record that uniquely identifies the suggestion. This can be used to
|
14439
|
+
# provide suggestion feedback.
|
14440
|
+
# Corresponds to the JSON property `answerRecord`
|
14441
|
+
# @return [String]
|
14442
|
+
attr_accessor :answer_record
|
14443
|
+
|
14444
|
+
# Suggestion generated using a Generator.
|
14445
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
14446
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
|
14447
|
+
attr_accessor :generator_suggestion
|
14448
|
+
|
14449
|
+
# The name of the generator used to generate this suggestion. Format: `projects//
|
14450
|
+
# locations//generators/`.
|
14451
|
+
# Corresponds to the JSON property `sourceGenerator`
|
14452
|
+
# @return [String]
|
14453
|
+
attr_accessor :source_generator
|
14454
|
+
|
14455
|
+
def initialize(**args)
|
14456
|
+
update!(**args)
|
14457
|
+
end
|
14458
|
+
|
14459
|
+
# Update properties of this object
|
14460
|
+
def update!(**args)
|
14461
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
14462
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
14463
|
+
@source_generator = args[:source_generator] if args.key?(:source_generator)
|
14464
|
+
end
|
14465
|
+
end
|
14466
|
+
|
14105
14467
|
# LLM generator.
|
14106
14468
|
class GoogleCloudDialogflowV2beta1Generator
|
14107
14469
|
include Google::Apis::Core::Hashable
|
@@ -14116,6 +14478,11 @@ module Google
|
|
14116
14478
|
# @return [String]
|
14117
14479
|
attr_accessor :description
|
14118
14480
|
|
14481
|
+
# Free form generator context that customer can configure.
|
14482
|
+
# Corresponds to the JSON property `freeFormContext`
|
14483
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormContext]
|
14484
|
+
attr_accessor :free_form_context
|
14485
|
+
|
14119
14486
|
# The parameters of inference.
|
14120
14487
|
# Corresponds to the JSON property `inferenceParameter`
|
14121
14488
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter]
|
@@ -14127,6 +14494,14 @@ module Google
|
|
14127
14494
|
# @return [String]
|
14128
14495
|
attr_accessor :name
|
14129
14496
|
|
14497
|
+
# Optional. The published Large Language Model name. * To use the latest model
|
14498
|
+
# version, specify the model name without version number. Example: `text-bison` *
|
14499
|
+
# To use a stable model version, specify the version number as well. Example: `
|
14500
|
+
# text-bison@002`.
|
14501
|
+
# Corresponds to the JSON property `publishedModel`
|
14502
|
+
# @return [String]
|
14503
|
+
attr_accessor :published_model
|
14504
|
+
|
14130
14505
|
# Summarization context that customer can configure.
|
14131
14506
|
# Corresponds to the JSON property `summarizationContext`
|
14132
14507
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext]
|
@@ -14151,8 +14526,10 @@ module Google
|
|
14151
14526
|
def update!(**args)
|
14152
14527
|
@create_time = args[:create_time] if args.key?(:create_time)
|
14153
14528
|
@description = args[:description] if args.key?(:description)
|
14529
|
+
@free_form_context = args[:free_form_context] if args.key?(:free_form_context)
|
14154
14530
|
@inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
|
14155
14531
|
@name = args[:name] if args.key?(:name)
|
14532
|
+
@published_model = args[:published_model] if args.key?(:published_model)
|
14156
14533
|
@summarization_context = args[:summarization_context] if args.key?(:summarization_context)
|
14157
14534
|
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
14158
14535
|
@update_time = args[:update_time] if args.key?(:update_time)
|
@@ -14163,6 +14540,11 @@ module Google
|
|
14163
14540
|
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
14164
14541
|
include Google::Apis::Core::Hashable
|
14165
14542
|
|
14543
|
+
# Suggestion generated using free form generator.
|
14544
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
14545
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
|
14546
|
+
attr_accessor :free_form_suggestion
|
14547
|
+
|
14166
14548
|
# Suggested summary of the conversation.
|
14167
14549
|
# Corresponds to the JSON property `summarySuggestion`
|
14168
14550
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion]
|
@@ -14174,6 +14556,7 @@ module Google
|
|
14174
14556
|
|
14175
14557
|
# Update properties of this object
|
14176
14558
|
def update!(**args)
|
14559
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
14177
14560
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
14178
14561
|
end
|
14179
14562
|
end
|
@@ -14994,6 +15377,47 @@ module Google
|
|
14994
15377
|
end
|
14995
15378
|
end
|
14996
15379
|
|
15380
|
+
# The request message for ConversationsService.IngestContextReferences.
|
15381
|
+
class GoogleCloudDialogflowV2beta1IngestContextReferencesRequest
|
15382
|
+
include Google::Apis::Core::Hashable
|
15383
|
+
|
15384
|
+
# Required. The context references to ingest. The key is the name of the context
|
15385
|
+
# reference and the value contains the contents of the context reference. The
|
15386
|
+
# key is used to incorporate ingested context references to enhance the
|
15387
|
+
# generator.
|
15388
|
+
# Corresponds to the JSON property `contextReferences`
|
15389
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>]
|
15390
|
+
attr_accessor :context_references
|
15391
|
+
|
15392
|
+
def initialize(**args)
|
15393
|
+
update!(**args)
|
15394
|
+
end
|
15395
|
+
|
15396
|
+
# Update properties of this object
|
15397
|
+
def update!(**args)
|
15398
|
+
@context_references = args[:context_references] if args.key?(:context_references)
|
15399
|
+
end
|
15400
|
+
end
|
15401
|
+
|
15402
|
+
# The response message for ConversationsService.IngestContextReferences.
|
15403
|
+
class GoogleCloudDialogflowV2beta1IngestContextReferencesResponse
|
15404
|
+
include Google::Apis::Core::Hashable
|
15405
|
+
|
15406
|
+
# All context references ingested.
|
15407
|
+
# Corresponds to the JSON property `ingestedContextReferences`
|
15408
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>]
|
15409
|
+
attr_accessor :ingested_context_references
|
15410
|
+
|
15411
|
+
def initialize(**args)
|
15412
|
+
update!(**args)
|
15413
|
+
end
|
15414
|
+
|
15415
|
+
# Update properties of this object
|
15416
|
+
def update!(**args)
|
15417
|
+
@ingested_context_references = args[:ingested_context_references] if args.key?(:ingested_context_references)
|
15418
|
+
end
|
15419
|
+
end
|
15420
|
+
|
14997
15421
|
# Metadata for initializing a location-level encryption specification.
|
14998
15422
|
class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata
|
14999
15423
|
include Google::Apis::Core::Hashable
|
@@ -20423,6 +20847,11 @@ module Google
|
|
20423
20847
|
# @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus]
|
20424
20848
|
attr_accessor :error
|
20425
20849
|
|
20850
|
+
# The response message for Conversations.GenerateSuggestions.
|
20851
|
+
# Corresponds to the JSON property `generateSuggestionsResponse`
|
20852
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse]
|
20853
|
+
attr_accessor :generate_suggestions_response
|
20854
|
+
|
20426
20855
|
# The response message for Participants.SuggestArticles.
|
20427
20856
|
# Corresponds to the JSON property `suggestArticlesResponse`
|
20428
20857
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
|
@@ -20460,6 +20889,7 @@ module Google
|
|
20460
20889
|
# Update properties of this object
|
20461
20890
|
def update!(**args)
|
20462
20891
|
@error = args[:error] if args.key?(:error)
|
20892
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
20463
20893
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
20464
20894
|
@suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
|
20465
20895
|
@suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_response)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV2beta1
|
18
18
|
# Version of the google-apis-dialogflow_v2beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.98.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
|
@@ -1372,12 +1372,36 @@ module Google
|
|
1372
1372
|
include Google::Apis::Core::JsonObjectSupport
|
1373
1373
|
end
|
1374
1374
|
|
1375
|
+
class GoogleCloudDialogflowV2FreeFormSuggestion
|
1376
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1377
|
+
|
1378
|
+
include Google::Apis::Core::JsonObjectSupport
|
1379
|
+
end
|
1380
|
+
|
1375
1381
|
class GoogleCloudDialogflowV2GcsDestination
|
1376
1382
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1377
1383
|
|
1378
1384
|
include Google::Apis::Core::JsonObjectSupport
|
1379
1385
|
end
|
1380
1386
|
|
1387
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
1388
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1389
|
+
|
1390
|
+
include Google::Apis::Core::JsonObjectSupport
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
1394
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1395
|
+
|
1396
|
+
include Google::Apis::Core::JsonObjectSupport
|
1397
|
+
end
|
1398
|
+
|
1399
|
+
class GoogleCloudDialogflowV2GeneratorSuggestion
|
1400
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1401
|
+
|
1402
|
+
include Google::Apis::Core::JsonObjectSupport
|
1403
|
+
end
|
1404
|
+
|
1381
1405
|
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
1382
1406
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1383
1407
|
|
@@ -1762,6 +1786,18 @@ module Google
|
|
1762
1786
|
include Google::Apis::Core::JsonObjectSupport
|
1763
1787
|
end
|
1764
1788
|
|
1789
|
+
class GoogleCloudDialogflowV2SummarySuggestion
|
1790
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1791
|
+
|
1792
|
+
include Google::Apis::Core::JsonObjectSupport
|
1793
|
+
end
|
1794
|
+
|
1795
|
+
class GoogleCloudDialogflowV2SummarySuggestionSummarySection
|
1796
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1797
|
+
|
1798
|
+
include Google::Apis::Core::JsonObjectSupport
|
1799
|
+
end
|
1800
|
+
|
1765
1801
|
class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
|
1766
1802
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1767
1803
|
|
@@ -2008,6 +2044,18 @@ module Google
|
|
2008
2044
|
include Google::Apis::Core::JsonObjectSupport
|
2009
2045
|
end
|
2010
2046
|
|
2047
|
+
class GoogleCloudDialogflowV2beta1ConversationContextReference
|
2048
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2049
|
+
|
2050
|
+
include Google::Apis::Core::JsonObjectSupport
|
2051
|
+
end
|
2052
|
+
|
2053
|
+
class GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent
|
2054
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2055
|
+
|
2056
|
+
include Google::Apis::Core::JsonObjectSupport
|
2057
|
+
end
|
2058
|
+
|
2011
2059
|
class GoogleCloudDialogflowV2beta1ConversationEvent
|
2012
2060
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2013
2061
|
|
@@ -2164,6 +2212,18 @@ module Google
|
|
2164
2212
|
include Google::Apis::Core::JsonObjectSupport
|
2165
2213
|
end
|
2166
2214
|
|
2215
|
+
class GoogleCloudDialogflowV2beta1FreeFormContext
|
2216
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2217
|
+
|
2218
|
+
include Google::Apis::Core::JsonObjectSupport
|
2219
|
+
end
|
2220
|
+
|
2221
|
+
class GoogleCloudDialogflowV2beta1FreeFormSuggestion
|
2222
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2223
|
+
|
2224
|
+
include Google::Apis::Core::JsonObjectSupport
|
2225
|
+
end
|
2226
|
+
|
2167
2227
|
class GoogleCloudDialogflowV2beta1Fulfillment
|
2168
2228
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2169
2229
|
|
@@ -2236,6 +2296,24 @@ module Google
|
|
2236
2296
|
include Google::Apis::Core::JsonObjectSupport
|
2237
2297
|
end
|
2238
2298
|
|
2299
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest
|
2300
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2301
|
+
|
2302
|
+
include Google::Apis::Core::JsonObjectSupport
|
2303
|
+
end
|
2304
|
+
|
2305
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
2306
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2307
|
+
|
2308
|
+
include Google::Apis::Core::JsonObjectSupport
|
2309
|
+
end
|
2310
|
+
|
2311
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
2312
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2313
|
+
|
2314
|
+
include Google::Apis::Core::JsonObjectSupport
|
2315
|
+
end
|
2316
|
+
|
2239
2317
|
class GoogleCloudDialogflowV2beta1Generator
|
2240
2318
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2241
2319
|
|
@@ -2386,6 +2464,18 @@ module Google
|
|
2386
2464
|
include Google::Apis::Core::JsonObjectSupport
|
2387
2465
|
end
|
2388
2466
|
|
2467
|
+
class GoogleCloudDialogflowV2beta1IngestContextReferencesRequest
|
2468
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2469
|
+
|
2470
|
+
include Google::Apis::Core::JsonObjectSupport
|
2471
|
+
end
|
2472
|
+
|
2473
|
+
class GoogleCloudDialogflowV2beta1IngestContextReferencesResponse
|
2474
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2475
|
+
|
2476
|
+
include Google::Apis::Core::JsonObjectSupport
|
2477
|
+
end
|
2478
|
+
|
2389
2479
|
class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata
|
2390
2480
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2391
2481
|
|
@@ -5656,6 +5746,13 @@ module Google
|
|
5656
5746
|
end
|
5657
5747
|
end
|
5658
5748
|
|
5749
|
+
class GoogleCloudDialogflowV2FreeFormSuggestion
|
5750
|
+
# @private
|
5751
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5752
|
+
property :response, as: 'response'
|
5753
|
+
end
|
5754
|
+
end
|
5755
|
+
|
5659
5756
|
class GoogleCloudDialogflowV2GcsDestination
|
5660
5757
|
# @private
|
5661
5758
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5663,6 +5760,35 @@ module Google
|
|
5663
5760
|
end
|
5664
5761
|
end
|
5665
5762
|
|
5763
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
5764
|
+
# @private
|
5765
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5766
|
+
collection :generator_suggestion_answers, as: 'generatorSuggestionAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer::Representation
|
5767
|
+
|
5768
|
+
property :latest_message, as: 'latestMessage'
|
5769
|
+
end
|
5770
|
+
end
|
5771
|
+
|
5772
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
5773
|
+
# @private
|
5774
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5775
|
+
property :answer_record, as: 'answerRecord'
|
5776
|
+
property :generator_suggestion, as: 'generatorSuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GeneratorSuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GeneratorSuggestion::Representation
|
5777
|
+
|
5778
|
+
property :source_generator, as: 'sourceGenerator'
|
5779
|
+
end
|
5780
|
+
end
|
5781
|
+
|
5782
|
+
class GoogleCloudDialogflowV2GeneratorSuggestion
|
5783
|
+
# @private
|
5784
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5785
|
+
property :free_form_suggestion, as: 'freeFormSuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FreeFormSuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FreeFormSuggestion::Representation
|
5786
|
+
|
5787
|
+
property :summary_suggestion, as: 'summarySuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SummarySuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SummarySuggestion::Representation
|
5788
|
+
|
5789
|
+
end
|
5790
|
+
end
|
5791
|
+
|
5666
5792
|
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
5667
5793
|
# @private
|
5668
5794
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6329,6 +6455,8 @@ module Google
|
|
6329
6455
|
class Representation < Google::Apis::Core::JsonRepresentation
|
6330
6456
|
property :error, as: 'error', class: Google::Apis::DialogflowV2beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2beta1::GoogleRpcStatus::Representation
|
6331
6457
|
|
6458
|
+
property :generate_suggestions_response, as: 'generateSuggestionsResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GenerateSuggestionsResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GenerateSuggestionsResponse::Representation
|
6459
|
+
|
6332
6460
|
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse::Representation
|
6333
6461
|
|
6334
6462
|
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse::Representation
|
@@ -6340,6 +6468,22 @@ module Google
|
|
6340
6468
|
end
|
6341
6469
|
end
|
6342
6470
|
|
6471
|
+
class GoogleCloudDialogflowV2SummarySuggestion
|
6472
|
+
# @private
|
6473
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6474
|
+
collection :summary_sections, as: 'summarySections', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SummarySuggestionSummarySection, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SummarySuggestionSummarySection::Representation
|
6475
|
+
|
6476
|
+
end
|
6477
|
+
end
|
6478
|
+
|
6479
|
+
class GoogleCloudDialogflowV2SummarySuggestionSummarySection
|
6480
|
+
# @private
|
6481
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6482
|
+
property :section, as: 'section'
|
6483
|
+
property :summary, as: 'summary'
|
6484
|
+
end
|
6485
|
+
end
|
6486
|
+
|
6343
6487
|
class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
|
6344
6488
|
# @private
|
6345
6489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6761,6 +6905,8 @@ module Google
|
|
6761
6905
|
property :conversation_profile, as: 'conversationProfile'
|
6762
6906
|
property :conversation_stage, as: 'conversationStage'
|
6763
6907
|
property :end_time, as: 'endTime'
|
6908
|
+
hash :ingested_context_references, as: 'ingestedContextReferences', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference::Representation
|
6909
|
+
|
6764
6910
|
property :lifecycle_state, as: 'lifecycleState'
|
6765
6911
|
property :name, as: 'name'
|
6766
6912
|
property :phone_number, as: 'phoneNumber', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber::Representation
|
@@ -6779,6 +6925,26 @@ module Google
|
|
6779
6925
|
end
|
6780
6926
|
end
|
6781
6927
|
|
6928
|
+
class GoogleCloudDialogflowV2beta1ConversationContextReference
|
6929
|
+
# @private
|
6930
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6931
|
+
collection :context_contents, as: 'contextContents', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent::Representation
|
6932
|
+
|
6933
|
+
property :create_time, as: 'createTime'
|
6934
|
+
property :language_code, as: 'languageCode'
|
6935
|
+
property :update_mode, as: 'updateMode'
|
6936
|
+
end
|
6937
|
+
end
|
6938
|
+
|
6939
|
+
class GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent
|
6940
|
+
# @private
|
6941
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6942
|
+
property :content, as: 'content'
|
6943
|
+
property :content_format, as: 'contentFormat'
|
6944
|
+
property :ingestion_time, as: 'ingestionTime'
|
6945
|
+
end
|
6946
|
+
end
|
6947
|
+
|
6782
6948
|
class GoogleCloudDialogflowV2beta1ConversationEvent
|
6783
6949
|
# @private
|
6784
6950
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7072,6 +7238,20 @@ module Google
|
|
7072
7238
|
end
|
7073
7239
|
end
|
7074
7240
|
|
7241
|
+
class GoogleCloudDialogflowV2beta1FreeFormContext
|
7242
|
+
# @private
|
7243
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7244
|
+
property :text, as: 'text'
|
7245
|
+
end
|
7246
|
+
end
|
7247
|
+
|
7248
|
+
class GoogleCloudDialogflowV2beta1FreeFormSuggestion
|
7249
|
+
# @private
|
7250
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7251
|
+
property :response, as: 'response'
|
7252
|
+
end
|
7253
|
+
end
|
7254
|
+
|
7075
7255
|
class GoogleCloudDialogflowV2beta1Fulfillment
|
7076
7256
|
# @private
|
7077
7257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -7127,6 +7307,8 @@ module Google
|
|
7127
7307
|
class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest
|
7128
7308
|
# @private
|
7129
7309
|
class Representation < Google::Apis::Core::JsonRepresentation
|
7310
|
+
hash :context_references, as: 'contextReferences', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference::Representation
|
7311
|
+
|
7130
7312
|
property :conversation_context, as: 'conversationContext', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext::Representation
|
7131
7313
|
|
7132
7314
|
property :generator, as: 'generator', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator::Representation
|
@@ -7183,14 +7365,44 @@ module Google
|
|
7183
7365
|
end
|
7184
7366
|
end
|
7185
7367
|
|
7368
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest
|
7369
|
+
# @private
|
7370
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7371
|
+
property :latest_message, as: 'latestMessage'
|
7372
|
+
collection :trigger_events, as: 'triggerEvents'
|
7373
|
+
end
|
7374
|
+
end
|
7375
|
+
|
7376
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
7377
|
+
# @private
|
7378
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7379
|
+
collection :generator_suggestion_answers, as: 'generatorSuggestionAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer::Representation
|
7380
|
+
|
7381
|
+
property :latest_message, as: 'latestMessage'
|
7382
|
+
end
|
7383
|
+
end
|
7384
|
+
|
7385
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
7386
|
+
# @private
|
7387
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7388
|
+
property :answer_record, as: 'answerRecord'
|
7389
|
+
property :generator_suggestion, as: 'generatorSuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion::Representation
|
7390
|
+
|
7391
|
+
property :source_generator, as: 'sourceGenerator'
|
7392
|
+
end
|
7393
|
+
end
|
7394
|
+
|
7186
7395
|
class GoogleCloudDialogflowV2beta1Generator
|
7187
7396
|
# @private
|
7188
7397
|
class Representation < Google::Apis::Core::JsonRepresentation
|
7189
7398
|
property :create_time, as: 'createTime'
|
7190
7399
|
property :description, as: 'description'
|
7400
|
+
property :free_form_context, as: 'freeFormContext', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormContext, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormContext::Representation
|
7401
|
+
|
7191
7402
|
property :inference_parameter, as: 'inferenceParameter', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter::Representation
|
7192
7403
|
|
7193
7404
|
property :name, as: 'name'
|
7405
|
+
property :published_model, as: 'publishedModel'
|
7194
7406
|
property :summarization_context, as: 'summarizationContext', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext::Representation
|
7195
7407
|
|
7196
7408
|
property :trigger_event, as: 'triggerEvent'
|
@@ -7201,6 +7413,8 @@ module Google
|
|
7201
7413
|
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
7202
7414
|
# @private
|
7203
7415
|
class Representation < Google::Apis::Core::JsonRepresentation
|
7416
|
+
property :free_form_suggestion, as: 'freeFormSuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormSuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormSuggestion::Representation
|
7417
|
+
|
7204
7418
|
property :summary_suggestion, as: 'summarySuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion::Representation
|
7205
7419
|
|
7206
7420
|
end
|
@@ -7431,6 +7645,22 @@ module Google
|
|
7431
7645
|
end
|
7432
7646
|
end
|
7433
7647
|
|
7648
|
+
class GoogleCloudDialogflowV2beta1IngestContextReferencesRequest
|
7649
|
+
# @private
|
7650
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7651
|
+
hash :context_references, as: 'contextReferences', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference::Representation
|
7652
|
+
|
7653
|
+
end
|
7654
|
+
end
|
7655
|
+
|
7656
|
+
class GoogleCloudDialogflowV2beta1IngestContextReferencesResponse
|
7657
|
+
# @private
|
7658
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
7659
|
+
hash :ingested_context_references, as: 'ingestedContextReferences', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference::Representation
|
7660
|
+
|
7661
|
+
end
|
7662
|
+
end
|
7663
|
+
|
7434
7664
|
class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata
|
7435
7665
|
# @private
|
7436
7666
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -8910,6 +9140,8 @@ module Google
|
|
8910
9140
|
class Representation < Google::Apis::Core::JsonRepresentation
|
8911
9141
|
property :error, as: 'error', class: Google::Apis::DialogflowV2beta1::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2beta1::GoogleRpcStatus::Representation
|
8912
9142
|
|
9143
|
+
property :generate_suggestions_response, as: 'generateSuggestionsResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse::Representation
|
9144
|
+
|
8913
9145
|
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse::Representation
|
8914
9146
|
|
8915
9147
|
property :suggest_dialogflow_assists_response, as: 'suggestDialogflowAssistsResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse::Representation
|
@@ -4121,6 +4121,43 @@ module Google
|
|
4121
4121
|
execute_or_queue_command(command, &block)
|
4122
4122
|
end
|
4123
4123
|
|
4124
|
+
# Generates all the suggestions using generators configured in the conversation
|
4125
|
+
# profile. A generator is used only if its trigger event is matched.
|
4126
|
+
# @param [String] conversation
|
4127
|
+
# Required. The conversation for which the suggestions are generated. Format: `
|
4128
|
+
# projects//locations//conversations/`. The conversation must be created with a
|
4129
|
+
# conversation profile which has generators configured in it to be able to get
|
4130
|
+
# suggestions.
|
4131
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest] google_cloud_dialogflow_v2beta1_generate_suggestions_request_object
|
4132
|
+
# @param [String] fields
|
4133
|
+
# Selector specifying which fields to include in a partial response.
|
4134
|
+
# @param [String] quota_user
|
4135
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4136
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4137
|
+
# @param [Google::Apis::RequestOptions] options
|
4138
|
+
# Request-specific options
|
4139
|
+
#
|
4140
|
+
# @yield [result, err] Result & error if block supplied
|
4141
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse] parsed result object
|
4142
|
+
# @yieldparam err [StandardError] error object if request failed
|
4143
|
+
#
|
4144
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse]
|
4145
|
+
#
|
4146
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4147
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4148
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4149
|
+
def generate_project_conversation_suggestion(conversation, google_cloud_dialogflow_v2beta1_generate_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4150
|
+
command = make_simple_command(:post, 'v2beta1/{+conversation}/suggestions:generate', options)
|
4151
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest::Representation
|
4152
|
+
command.request_object = google_cloud_dialogflow_v2beta1_generate_suggestions_request_object
|
4153
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse::Representation
|
4154
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
4155
|
+
command.params['conversation'] = conversation unless conversation.nil?
|
4156
|
+
command.query['fields'] = fields unless fields.nil?
|
4157
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4158
|
+
execute_or_queue_command(command, &block)
|
4159
|
+
end
|
4160
|
+
|
4124
4161
|
# Get answers for the given query based on knowledge documents.
|
4125
4162
|
# @param [String] conversation
|
4126
4163
|
# Optional. The conversation (between human agent and end user) where the search
|
@@ -7943,6 +7980,40 @@ module Google
|
|
7943
7980
|
execute_or_queue_command(command, &block)
|
7944
7981
|
end
|
7945
7982
|
|
7983
|
+
# Data ingestion API. Ingests context references for an existing conversation.
|
7984
|
+
# @param [String] conversation
|
7985
|
+
# Required. Resource identifier of the conversation to ingest context
|
7986
|
+
# information for. Format: `projects//locations//conversations/`.
|
7987
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IngestContextReferencesRequest] google_cloud_dialogflow_v2beta1_ingest_context_references_request_object
|
7988
|
+
# @param [String] fields
|
7989
|
+
# Selector specifying which fields to include in a partial response.
|
7990
|
+
# @param [String] quota_user
|
7991
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7992
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7993
|
+
# @param [Google::Apis::RequestOptions] options
|
7994
|
+
# Request-specific options
|
7995
|
+
#
|
7996
|
+
# @yield [result, err] Result & error if block supplied
|
7997
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IngestContextReferencesResponse] parsed result object
|
7998
|
+
# @yieldparam err [StandardError] error object if request failed
|
7999
|
+
#
|
8000
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IngestContextReferencesResponse]
|
8001
|
+
#
|
8002
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8003
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8004
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8005
|
+
def ingest_project_location_conversation_context_references(conversation, google_cloud_dialogflow_v2beta1_ingest_context_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
8006
|
+
command = make_simple_command(:post, 'v2beta1/{+conversation}:ingestContextReferences', options)
|
8007
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IngestContextReferencesRequest::Representation
|
8008
|
+
command.request_object = google_cloud_dialogflow_v2beta1_ingest_context_references_request_object
|
8009
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IngestContextReferencesResponse::Representation
|
8010
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IngestContextReferencesResponse
|
8011
|
+
command.params['conversation'] = conversation unless conversation.nil?
|
8012
|
+
command.query['fields'] = fields unless fields.nil?
|
8013
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8014
|
+
execute_or_queue_command(command, &block)
|
8015
|
+
end
|
8016
|
+
|
7946
8017
|
# Returns the list of all conversations in the specified project.
|
7947
8018
|
# @param [String] parent
|
7948
8019
|
# Required. The project from which to list all conversation. Format: `projects//
|
@@ -8388,6 +8459,43 @@ module Google
|
|
8388
8459
|
execute_or_queue_command(command, &block)
|
8389
8460
|
end
|
8390
8461
|
|
8462
|
+
# Generates all the suggestions using generators configured in the conversation
|
8463
|
+
# profile. A generator is used only if its trigger event is matched.
|
8464
|
+
# @param [String] conversation
|
8465
|
+
# Required. The conversation for which the suggestions are generated. Format: `
|
8466
|
+
# projects//locations//conversations/`. The conversation must be created with a
|
8467
|
+
# conversation profile which has generators configured in it to be able to get
|
8468
|
+
# suggestions.
|
8469
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest] google_cloud_dialogflow_v2beta1_generate_suggestions_request_object
|
8470
|
+
# @param [String] fields
|
8471
|
+
# Selector specifying which fields to include in a partial response.
|
8472
|
+
# @param [String] quota_user
|
8473
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8474
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8475
|
+
# @param [Google::Apis::RequestOptions] options
|
8476
|
+
# Request-specific options
|
8477
|
+
#
|
8478
|
+
# @yield [result, err] Result & error if block supplied
|
8479
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse] parsed result object
|
8480
|
+
# @yieldparam err [StandardError] error object if request failed
|
8481
|
+
#
|
8482
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse]
|
8483
|
+
#
|
8484
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8485
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8486
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8487
|
+
def generate_project_location_conversation_suggestion(conversation, google_cloud_dialogflow_v2beta1_generate_suggestions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
8488
|
+
command = make_simple_command(:post, 'v2beta1/{+conversation}/suggestions:generate', options)
|
8489
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest::Representation
|
8490
|
+
command.request_object = google_cloud_dialogflow_v2beta1_generate_suggestions_request_object
|
8491
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse::Representation
|
8492
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
8493
|
+
command.params['conversation'] = conversation unless conversation.nil?
|
8494
|
+
command.query['fields'] = fields unless fields.nil?
|
8495
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8496
|
+
execute_or_queue_command(command, &block)
|
8497
|
+
end
|
8498
|
+
|
8391
8499
|
# Get answers for the given query based on knowledge documents.
|
8392
8500
|
# @param [String] conversation
|
8393
8501
|
# 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_v2beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.98.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_v2beta1/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.98.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|