google-apis-dialogflow_v2beta1 0.84.0 → 0.86.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +488 -2
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +3 -3
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +228 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +296 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97644e07a921e48f5dc41dcb6a6680edd2dd33a5c6d8bd6010a5efd74b05488a
|
4
|
+
data.tar.gz: 6b564a630b4de27af6c714c0afbf53929811894c7ac170292f3addc79afc1cf1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9489fd3491c1406d4dd2295eca61e859315ca1abfdb05884755f4e928ca5a14f7bb87929cd0d437ce57a5358806fa5d14640b66b2d27409fe1f3818ceaf11707
|
7
|
+
data.tar.gz: a776a1d734e579e53a841b5af1c1bf6227c0c9ea643aa049d713ca455fe506fd0d124183ebf2d7904e5e2b0561208012beb6a67fa90aea1a6e59218753b70275
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v2beta1
|
2
2
|
|
3
|
+
### v0.86.0 (2024-06-02)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240523
|
6
|
+
|
7
|
+
### v0.85.0 (2024-05-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240507
|
10
|
+
* Regenerated using generator version 0.15.0
|
11
|
+
|
3
12
|
### v0.84.0 (2024-04-21)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20240417
|
@@ -81,11 +81,21 @@ module Google
|
|
81
81
|
attr_accessor :enabled
|
82
82
|
alias_method :enabled?, :enabled
|
83
83
|
|
84
|
+
# Endpoint timeout setting for matching dtmf input to regex.
|
85
|
+
# Corresponds to the JSON property `endpointingTimeoutDuration`
|
86
|
+
# @return [String]
|
87
|
+
attr_accessor :endpointing_timeout_duration
|
88
|
+
|
84
89
|
# The digit that terminates a DTMF digit sequence.
|
85
90
|
# Corresponds to the JSON property `finishDigit`
|
86
91
|
# @return [String]
|
87
92
|
attr_accessor :finish_digit
|
88
93
|
|
94
|
+
# Interdigit timeout setting for matching dtmf input to regex.
|
95
|
+
# Corresponds to the JSON property `interdigitTimeoutDuration`
|
96
|
+
# @return [String]
|
97
|
+
attr_accessor :interdigit_timeout_duration
|
98
|
+
|
89
99
|
# Max length of DTMF digits.
|
90
100
|
# Corresponds to the JSON property `maxDigits`
|
91
101
|
# @return [Fixnum]
|
@@ -98,7 +108,9 @@ module Google
|
|
98
108
|
# Update properties of this object
|
99
109
|
def update!(**args)
|
100
110
|
@enabled = args[:enabled] if args.key?(:enabled)
|
111
|
+
@endpointing_timeout_duration = args[:endpointing_timeout_duration] if args.key?(:endpointing_timeout_duration)
|
101
112
|
@finish_digit = args[:finish_digit] if args.key?(:finish_digit)
|
113
|
+
@interdigit_timeout_duration = args[:interdigit_timeout_duration] if args.key?(:interdigit_timeout_duration)
|
102
114
|
@max_digits = args[:max_digits] if args.key?(:max_digits)
|
103
115
|
end
|
104
116
|
end
|
@@ -3915,11 +3927,21 @@ module Google
|
|
3915
3927
|
attr_accessor :enabled
|
3916
3928
|
alias_method :enabled?, :enabled
|
3917
3929
|
|
3930
|
+
# Endpoint timeout setting for matching dtmf input to regex.
|
3931
|
+
# Corresponds to the JSON property `endpointingTimeoutDuration`
|
3932
|
+
# @return [String]
|
3933
|
+
attr_accessor :endpointing_timeout_duration
|
3934
|
+
|
3918
3935
|
# The digit that terminates a DTMF digit sequence.
|
3919
3936
|
# Corresponds to the JSON property `finishDigit`
|
3920
3937
|
# @return [String]
|
3921
3938
|
attr_accessor :finish_digit
|
3922
3939
|
|
3940
|
+
# Interdigit timeout setting for matching dtmf input to regex.
|
3941
|
+
# Corresponds to the JSON property `interdigitTimeoutDuration`
|
3942
|
+
# @return [String]
|
3943
|
+
attr_accessor :interdigit_timeout_duration
|
3944
|
+
|
3923
3945
|
# Max length of DTMF digits.
|
3924
3946
|
# Corresponds to the JSON property `maxDigits`
|
3925
3947
|
# @return [Fixnum]
|
@@ -3932,7 +3954,9 @@ module Google
|
|
3932
3954
|
# Update properties of this object
|
3933
3955
|
def update!(**args)
|
3934
3956
|
@enabled = args[:enabled] if args.key?(:enabled)
|
3957
|
+
@endpointing_timeout_duration = args[:endpointing_timeout_duration] if args.key?(:endpointing_timeout_duration)
|
3935
3958
|
@finish_digit = args[:finish_digit] if args.key?(:finish_digit)
|
3959
|
+
@interdigit_timeout_duration = args[:interdigit_timeout_duration] if args.key?(:interdigit_timeout_duration)
|
3936
3960
|
@max_digits = args[:max_digits] if args.key?(:max_digits)
|
3937
3961
|
end
|
3938
3962
|
end
|
@@ -12086,6 +12110,25 @@ module Google
|
|
12086
12110
|
end
|
12087
12111
|
end
|
12088
12112
|
|
12113
|
+
# Context of the conversation, including transcripts.
|
12114
|
+
class GoogleCloudDialogflowV2beta1ConversationContext
|
12115
|
+
include Google::Apis::Core::Hashable
|
12116
|
+
|
12117
|
+
# Optional. List of message transcripts in the conversation.
|
12118
|
+
# Corresponds to the JSON property `messageEntries`
|
12119
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry>]
|
12120
|
+
attr_accessor :message_entries
|
12121
|
+
|
12122
|
+
def initialize(**args)
|
12123
|
+
update!(**args)
|
12124
|
+
end
|
12125
|
+
|
12126
|
+
# Update properties of this object
|
12127
|
+
def update!(**args)
|
12128
|
+
@message_entries = args[:message_entries] if args.key?(:message_entries)
|
12129
|
+
end
|
12130
|
+
end
|
12131
|
+
|
12089
12132
|
# Represents a notification sent to Pub/Sub subscribers for conversation
|
12090
12133
|
# lifecycle events.
|
12091
12134
|
class GoogleCloudDialogflowV2beta1ConversationEvent
|
@@ -13030,6 +13073,46 @@ module Google
|
|
13030
13073
|
end
|
13031
13074
|
end
|
13032
13075
|
|
13076
|
+
# Providing examples in the generator (i.e. building a few-shot generator) helps
|
13077
|
+
# convey the desired format of the LLM response. NEXT_ID: 10
|
13078
|
+
class GoogleCloudDialogflowV2beta1FewShotExample
|
13079
|
+
include Google::Apis::Core::Hashable
|
13080
|
+
|
13081
|
+
# Context of the conversation, including transcripts.
|
13082
|
+
# Corresponds to the JSON property `conversationContext`
|
13083
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext]
|
13084
|
+
attr_accessor :conversation_context
|
13085
|
+
|
13086
|
+
# Optional. Key is the placeholder field name in input, value is the value of
|
13087
|
+
# the placeholder. E.g. instruction contains "@price", and ingested data has <"
|
13088
|
+
# price", "10">
|
13089
|
+
# Corresponds to the JSON property `extraInfo`
|
13090
|
+
# @return [Hash<String,String>]
|
13091
|
+
attr_accessor :extra_info
|
13092
|
+
|
13093
|
+
# Suggestion generated using a Generator.
|
13094
|
+
# Corresponds to the JSON property `output`
|
13095
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
|
13096
|
+
attr_accessor :output
|
13097
|
+
|
13098
|
+
# List of summarization sections.
|
13099
|
+
# Corresponds to the JSON property `summarizationSectionList`
|
13100
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSectionList]
|
13101
|
+
attr_accessor :summarization_section_list
|
13102
|
+
|
13103
|
+
def initialize(**args)
|
13104
|
+
update!(**args)
|
13105
|
+
end
|
13106
|
+
|
13107
|
+
# Update properties of this object
|
13108
|
+
def update!(**args)
|
13109
|
+
@conversation_context = args[:conversation_context] if args.key?(:conversation_context)
|
13110
|
+
@extra_info = args[:extra_info] if args.key?(:extra_info)
|
13111
|
+
@output = args[:output] if args.key?(:output)
|
13112
|
+
@summarization_section_list = args[:summarization_section_list] if args.key?(:summarization_section_list)
|
13113
|
+
end
|
13114
|
+
end
|
13115
|
+
|
13033
13116
|
# By default, your agent responds to a matched intent with a static response. As
|
13034
13117
|
# an alternative, you can provide a more dynamic response by using fulfillment.
|
13035
13118
|
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
@@ -13221,6 +13304,64 @@ module Google
|
|
13221
13304
|
end
|
13222
13305
|
end
|
13223
13306
|
|
13307
|
+
# The request message for Conversations.GenerateStatelessSuggestion.
|
13308
|
+
class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest
|
13309
|
+
include Google::Apis::Core::Hashable
|
13310
|
+
|
13311
|
+
# Context of the conversation, including transcripts.
|
13312
|
+
# Corresponds to the JSON property `conversationContext`
|
13313
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext]
|
13314
|
+
attr_accessor :conversation_context
|
13315
|
+
|
13316
|
+
# LLM generator.
|
13317
|
+
# Corresponds to the JSON property `generator`
|
13318
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator]
|
13319
|
+
attr_accessor :generator
|
13320
|
+
|
13321
|
+
# The resource name of the existing created generator. Format: `projects//
|
13322
|
+
# locations//generators/`
|
13323
|
+
# Corresponds to the JSON property `generatorName`
|
13324
|
+
# @return [String]
|
13325
|
+
attr_accessor :generator_name
|
13326
|
+
|
13327
|
+
# Optional. A list of trigger events. Generator will be triggered only if it's
|
13328
|
+
# trigger event is included here.
|
13329
|
+
# Corresponds to the JSON property `triggerEvents`
|
13330
|
+
# @return [Array<String>]
|
13331
|
+
attr_accessor :trigger_events
|
13332
|
+
|
13333
|
+
def initialize(**args)
|
13334
|
+
update!(**args)
|
13335
|
+
end
|
13336
|
+
|
13337
|
+
# Update properties of this object
|
13338
|
+
def update!(**args)
|
13339
|
+
@conversation_context = args[:conversation_context] if args.key?(:conversation_context)
|
13340
|
+
@generator = args[:generator] if args.key?(:generator)
|
13341
|
+
@generator_name = args[:generator_name] if args.key?(:generator_name)
|
13342
|
+
@trigger_events = args[:trigger_events] if args.key?(:trigger_events)
|
13343
|
+
end
|
13344
|
+
end
|
13345
|
+
|
13346
|
+
# The response message for Conversations.GenerateStatelessSuggestion.
|
13347
|
+
class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionResponse
|
13348
|
+
include Google::Apis::Core::Hashable
|
13349
|
+
|
13350
|
+
# Suggestion generated using a Generator.
|
13351
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
13352
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
|
13353
|
+
attr_accessor :generator_suggestion
|
13354
|
+
|
13355
|
+
def initialize(**args)
|
13356
|
+
update!(**args)
|
13357
|
+
end
|
13358
|
+
|
13359
|
+
# Update properties of this object
|
13360
|
+
def update!(**args)
|
13361
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
13362
|
+
end
|
13363
|
+
end
|
13364
|
+
|
13224
13365
|
# The request message for Conversations.GenerateStatelessSummary.
|
13225
13366
|
class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
|
13226
13367
|
include Google::Apis::Core::Hashable
|
@@ -13356,6 +13497,82 @@ module Google
|
|
13356
13497
|
end
|
13357
13498
|
end
|
13358
13499
|
|
13500
|
+
# LLM generator.
|
13501
|
+
class GoogleCloudDialogflowV2beta1Generator
|
13502
|
+
include Google::Apis::Core::Hashable
|
13503
|
+
|
13504
|
+
# Output only. Creation time of this generator.
|
13505
|
+
# Corresponds to the JSON property `createTime`
|
13506
|
+
# @return [String]
|
13507
|
+
attr_accessor :create_time
|
13508
|
+
|
13509
|
+
# Optional. Human readable description of the generator.
|
13510
|
+
# Corresponds to the JSON property `description`
|
13511
|
+
# @return [String]
|
13512
|
+
attr_accessor :description
|
13513
|
+
|
13514
|
+
# The parameters of inference.
|
13515
|
+
# Corresponds to the JSON property `inferenceParameter`
|
13516
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter]
|
13517
|
+
attr_accessor :inference_parameter
|
13518
|
+
|
13519
|
+
# Output only. Identifier. The resource name of the generator. Format: `projects/
|
13520
|
+
# /locations//generators/`
|
13521
|
+
# Corresponds to the JSON property `name`
|
13522
|
+
# @return [String]
|
13523
|
+
attr_accessor :name
|
13524
|
+
|
13525
|
+
# Summarization context that customer can configure.
|
13526
|
+
# Corresponds to the JSON property `summarizationContext`
|
13527
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext]
|
13528
|
+
attr_accessor :summarization_context
|
13529
|
+
|
13530
|
+
# Optional. The trigger event of the generator. It defines when the generator is
|
13531
|
+
# triggered in a conversation.
|
13532
|
+
# Corresponds to the JSON property `triggerEvent`
|
13533
|
+
# @return [String]
|
13534
|
+
attr_accessor :trigger_event
|
13535
|
+
|
13536
|
+
# Output only. Update time of this generator.
|
13537
|
+
# Corresponds to the JSON property `updateTime`
|
13538
|
+
# @return [String]
|
13539
|
+
attr_accessor :update_time
|
13540
|
+
|
13541
|
+
def initialize(**args)
|
13542
|
+
update!(**args)
|
13543
|
+
end
|
13544
|
+
|
13545
|
+
# Update properties of this object
|
13546
|
+
def update!(**args)
|
13547
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
13548
|
+
@description = args[:description] if args.key?(:description)
|
13549
|
+
@inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
|
13550
|
+
@name = args[:name] if args.key?(:name)
|
13551
|
+
@summarization_context = args[:summarization_context] if args.key?(:summarization_context)
|
13552
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
13553
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
13554
|
+
end
|
13555
|
+
end
|
13556
|
+
|
13557
|
+
# Suggestion generated using a Generator.
|
13558
|
+
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
13559
|
+
include Google::Apis::Core::Hashable
|
13560
|
+
|
13561
|
+
# Suggested summary of the conversation.
|
13562
|
+
# Corresponds to the JSON property `summarySuggestion`
|
13563
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion]
|
13564
|
+
attr_accessor :summary_suggestion
|
13565
|
+
|
13566
|
+
def initialize(**args)
|
13567
|
+
update!(**args)
|
13568
|
+
end
|
13569
|
+
|
13570
|
+
# Update properties of this object
|
13571
|
+
def update!(**args)
|
13572
|
+
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
13573
|
+
end
|
13574
|
+
end
|
13575
|
+
|
13359
13576
|
# Defines the Human Agent Assistant to connect to a conversation.
|
13360
13577
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
|
13361
13578
|
include Google::Apis::Core::Hashable
|
@@ -13493,6 +13710,12 @@ module Google
|
|
13493
13710
|
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig>]
|
13494
13711
|
attr_accessor :feature_configs
|
13495
13712
|
|
13713
|
+
# Optional. List of various generator resource names used in the conversation
|
13714
|
+
# profile.
|
13715
|
+
# Corresponds to the JSON property `generators`
|
13716
|
+
# @return [Array<String>]
|
13717
|
+
attr_accessor :generators
|
13718
|
+
|
13496
13719
|
# If `group_suggestion_responses` is false, and there are multiple `
|
13497
13720
|
# feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we
|
13498
13721
|
# will try to deliver suggestions to customers as soon as we get new suggestion.
|
@@ -13513,6 +13736,7 @@ module Google
|
|
13513
13736
|
# Update properties of this object
|
13514
13737
|
def update!(**args)
|
13515
13738
|
@feature_configs = args[:feature_configs] if args.key?(:feature_configs)
|
13739
|
+
@generators = args[:generators] if args.key?(:generators)
|
13516
13740
|
@group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
|
13517
13741
|
end
|
13518
13742
|
end
|
@@ -13878,7 +14102,7 @@ module Google
|
|
13878
14102
|
class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
|
13879
14103
|
include Google::Apis::Core::Hashable
|
13880
14104
|
|
13881
|
-
# Configuration specific to LivePerson
|
14105
|
+
# Configuration specific to [LivePerson](https://www.liveperson.com).
|
13882
14106
|
# Corresponds to the JSON property `livePersonConfig`
|
13883
14107
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig]
|
13884
14108
|
attr_accessor :live_person_config
|
@@ -13899,7 +14123,7 @@ module Google
|
|
13899
14123
|
end
|
13900
14124
|
end
|
13901
14125
|
|
13902
|
-
# Configuration specific to LivePerson
|
14126
|
+
# Configuration specific to [LivePerson](https://www.liveperson.com).
|
13903
14127
|
class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig
|
13904
14128
|
include Google::Apis::Core::Hashable
|
13905
14129
|
|
@@ -14076,6 +14300,60 @@ module Google
|
|
14076
14300
|
end
|
14077
14301
|
end
|
14078
14302
|
|
14303
|
+
# The parameters of inference.
|
14304
|
+
class GoogleCloudDialogflowV2beta1InferenceParameter
|
14305
|
+
include Google::Apis::Core::Hashable
|
14306
|
+
|
14307
|
+
# Optional. Maximum number of the output tokens for the generator.
|
14308
|
+
# Corresponds to the JSON property `maxOutputTokens`
|
14309
|
+
# @return [Fixnum]
|
14310
|
+
attr_accessor :max_output_tokens
|
14311
|
+
|
14312
|
+
# Optional. Controls the randomness of LLM predictions. Low temperature = less
|
14313
|
+
# random. High temperature = more random. If unset (or 0), uses a default value
|
14314
|
+
# of 0.
|
14315
|
+
# Corresponds to the JSON property `temperature`
|
14316
|
+
# @return [Float]
|
14317
|
+
attr_accessor :temperature
|
14318
|
+
|
14319
|
+
# Optional. Top-k changes how the model selects tokens for output. A top-k of 1
|
14320
|
+
# means the selected token is the most probable among all tokens in the model's
|
14321
|
+
# vocabulary (also called greedy decoding), while a top-k of 3 means that the
|
14322
|
+
# next token is selected from among the 3 most probable tokens (using
|
14323
|
+
# temperature). For each token selection step, the top K tokens with the highest
|
14324
|
+
# probabilities are sampled. Then tokens are further filtered based on topP with
|
14325
|
+
# the final token selected using temperature sampling. Specify a lower value for
|
14326
|
+
# less random responses and a higher value for more random responses. Acceptable
|
14327
|
+
# value is [1, 40], default to 40.
|
14328
|
+
# Corresponds to the JSON property `topK`
|
14329
|
+
# @return [Fixnum]
|
14330
|
+
attr_accessor :top_k
|
14331
|
+
|
14332
|
+
# Optional. Top-p changes how the model selects tokens for output. Tokens are
|
14333
|
+
# selected from most K (see topK parameter) probable to least until the sum of
|
14334
|
+
# their probabilities equals the top-p value. For example, if tokens A, B, and C
|
14335
|
+
# have a probability of 0.3, 0.2, and 0.1 and the top-p value is 0.5, then the
|
14336
|
+
# model will select either A or B as the next token (using temperature) and
|
14337
|
+
# doesn't consider C. The default top-p value is 0.95. Specify a lower value for
|
14338
|
+
# less random responses and a higher value for more random responses. Acceptable
|
14339
|
+
# value is [0.0, 1.0], default to 0.95.
|
14340
|
+
# Corresponds to the JSON property `topP`
|
14341
|
+
# @return [Float]
|
14342
|
+
attr_accessor :top_p
|
14343
|
+
|
14344
|
+
def initialize(**args)
|
14345
|
+
update!(**args)
|
14346
|
+
end
|
14347
|
+
|
14348
|
+
# Update properties of this object
|
14349
|
+
def update!(**args)
|
14350
|
+
@max_output_tokens = args[:max_output_tokens] if args.key?(:max_output_tokens)
|
14351
|
+
@temperature = args[:temperature] if args.key?(:temperature)
|
14352
|
+
@top_k = args[:top_k] if args.key?(:top_k)
|
14353
|
+
@top_p = args[:top_p] if args.key?(:top_p)
|
14354
|
+
end
|
14355
|
+
end
|
14356
|
+
|
14079
14357
|
# Instructs the speech recognizer on how to process the audio content.
|
14080
14358
|
class GoogleCloudDialogflowV2beta1InputAudioConfig
|
14081
14359
|
include Google::Apis::Core::Hashable
|
@@ -14108,6 +14386,12 @@ module Google
|
|
14108
14386
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BargeInConfig]
|
14109
14387
|
attr_accessor :barge_in_config
|
14110
14388
|
|
14389
|
+
# If set, use this no-speech timeout when the agent does not provide a no-speech
|
14390
|
+
# timeout itself.
|
14391
|
+
# Corresponds to the JSON property `defaultNoSpeechTimeout`
|
14392
|
+
# @return [String]
|
14393
|
+
attr_accessor :default_no_speech_timeout
|
14394
|
+
|
14111
14395
|
# Only used in Participants.AnalyzeContent and Participants.
|
14112
14396
|
# StreamingAnalyzeContent. If `false` and recognition doesn't return any result,
|
14113
14397
|
# trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
|
@@ -14206,6 +14490,7 @@ module Google
|
|
14206
14490
|
def update!(**args)
|
14207
14491
|
@audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
|
14208
14492
|
@barge_in_config = args[:barge_in_config] if args.key?(:barge_in_config)
|
14493
|
+
@default_no_speech_timeout = args[:default_no_speech_timeout] if args.key?(:default_no_speech_timeout)
|
14209
14494
|
@disable_no_speech_recognized_event = args[:disable_no_speech_recognized_event] if args.key?(:disable_no_speech_recognized_event)
|
14210
14495
|
@enable_automatic_punctuation = args[:enable_automatic_punctuation] if args.key?(:enable_automatic_punctuation)
|
14211
14496
|
@enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
|
@@ -16360,6 +16645,32 @@ module Google
|
|
16360
16645
|
end
|
16361
16646
|
end
|
16362
16647
|
|
16648
|
+
# Response of ListGenerators.
|
16649
|
+
class GoogleCloudDialogflowV2beta1ListGeneratorsResponse
|
16650
|
+
include Google::Apis::Core::Hashable
|
16651
|
+
|
16652
|
+
# List of generators retrieved.
|
16653
|
+
# Corresponds to the JSON property `generators`
|
16654
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Generator>]
|
16655
|
+
attr_accessor :generators
|
16656
|
+
|
16657
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
16658
|
+
# results in the list.
|
16659
|
+
# Corresponds to the JSON property `nextPageToken`
|
16660
|
+
# @return [String]
|
16661
|
+
attr_accessor :next_page_token
|
16662
|
+
|
16663
|
+
def initialize(**args)
|
16664
|
+
update!(**args)
|
16665
|
+
end
|
16666
|
+
|
16667
|
+
# Update properties of this object
|
16668
|
+
def update!(**args)
|
16669
|
+
@generators = args[:generators] if args.key?(:generators)
|
16670
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
16671
|
+
end
|
16672
|
+
end
|
16673
|
+
|
16363
16674
|
# The response message for Intents.ListIntents.
|
16364
16675
|
class GoogleCloudDialogflowV2beta1ListIntentsResponse
|
16365
16676
|
include Google::Apis::Core::Hashable
|
@@ -16675,6 +16986,45 @@ module Google
|
|
16675
16986
|
end
|
16676
16987
|
end
|
16677
16988
|
|
16989
|
+
# Represents a message entry of a conversation.
|
16990
|
+
class GoogleCloudDialogflowV2beta1MessageEntry
|
16991
|
+
include Google::Apis::Core::Hashable
|
16992
|
+
|
16993
|
+
# Optional. Create time of the message entry.
|
16994
|
+
# Corresponds to the JSON property `createTime`
|
16995
|
+
# @return [String]
|
16996
|
+
attr_accessor :create_time
|
16997
|
+
|
16998
|
+
# Optional. The language of the text. See [Language Support](https://cloud.
|
16999
|
+
# google.com/dialogflow/docs/reference/language) for a list of the currently
|
17000
|
+
# supported language codes.
|
17001
|
+
# Corresponds to the JSON property `languageCode`
|
17002
|
+
# @return [String]
|
17003
|
+
attr_accessor :language_code
|
17004
|
+
|
17005
|
+
# Optional. Participant role of the message.
|
17006
|
+
# Corresponds to the JSON property `role`
|
17007
|
+
# @return [String]
|
17008
|
+
attr_accessor :role
|
17009
|
+
|
17010
|
+
# Optional. Transcript content of the message.
|
17011
|
+
# Corresponds to the JSON property `text`
|
17012
|
+
# @return [String]
|
17013
|
+
attr_accessor :text
|
17014
|
+
|
17015
|
+
def initialize(**args)
|
17016
|
+
update!(**args)
|
17017
|
+
end
|
17018
|
+
|
17019
|
+
# Update properties of this object
|
17020
|
+
def update!(**args)
|
17021
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
17022
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
17023
|
+
@role = args[:role] if args.key?(:role)
|
17024
|
+
@text = args[:text] if args.key?(:text)
|
17025
|
+
end
|
17026
|
+
end
|
17027
|
+
|
16678
17028
|
# Defines notification behavior.
|
16679
17029
|
class GoogleCloudDialogflowV2beta1NotificationConfig
|
16680
17030
|
include Google::Apis::Core::Hashable
|
@@ -18584,6 +18934,142 @@ module Google
|
|
18584
18934
|
end
|
18585
18935
|
end
|
18586
18936
|
|
18937
|
+
# Summarization context that customer can configure.
|
18938
|
+
class GoogleCloudDialogflowV2beta1SummarizationContext
|
18939
|
+
include Google::Apis::Core::Hashable
|
18940
|
+
|
18941
|
+
# Optional. List of few shot examples.
|
18942
|
+
# Corresponds to the JSON property `fewShotExamples`
|
18943
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FewShotExample>]
|
18944
|
+
attr_accessor :few_shot_examples
|
18945
|
+
|
18946
|
+
# Optional. The target language of the generated summary. The language code for
|
18947
|
+
# conversation will be used if this field is empty. Supported 2.0 and later
|
18948
|
+
# versions.
|
18949
|
+
# Corresponds to the JSON property `outputLanguageCode`
|
18950
|
+
# @return [String]
|
18951
|
+
attr_accessor :output_language_code
|
18952
|
+
|
18953
|
+
# Optional. List of sections. Note it contains both predefined section sand
|
18954
|
+
# customer defined sections.
|
18955
|
+
# Corresponds to the JSON property `summarizationSections`
|
18956
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection>]
|
18957
|
+
attr_accessor :summarization_sections
|
18958
|
+
|
18959
|
+
# Optional. Version of the feature. If not set, default to latest version.
|
18960
|
+
# Current candidates are ["1.0"].
|
18961
|
+
# Corresponds to the JSON property `version`
|
18962
|
+
# @return [String]
|
18963
|
+
attr_accessor :version
|
18964
|
+
|
18965
|
+
def initialize(**args)
|
18966
|
+
update!(**args)
|
18967
|
+
end
|
18968
|
+
|
18969
|
+
# Update properties of this object
|
18970
|
+
def update!(**args)
|
18971
|
+
@few_shot_examples = args[:few_shot_examples] if args.key?(:few_shot_examples)
|
18972
|
+
@output_language_code = args[:output_language_code] if args.key?(:output_language_code)
|
18973
|
+
@summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
|
18974
|
+
@version = args[:version] if args.key?(:version)
|
18975
|
+
end
|
18976
|
+
end
|
18977
|
+
|
18978
|
+
# Represents the section of summarization.
|
18979
|
+
class GoogleCloudDialogflowV2beta1SummarizationSection
|
18980
|
+
include Google::Apis::Core::Hashable
|
18981
|
+
|
18982
|
+
# Optional. Definition of the section, for example, "what the customer needs
|
18983
|
+
# help with or has question about."
|
18984
|
+
# Corresponds to the JSON property `definition`
|
18985
|
+
# @return [String]
|
18986
|
+
attr_accessor :definition
|
18987
|
+
|
18988
|
+
# Optional. Name of the section, for example, "situation".
|
18989
|
+
# Corresponds to the JSON property `key`
|
18990
|
+
# @return [String]
|
18991
|
+
attr_accessor :key
|
18992
|
+
|
18993
|
+
# Optional. Type of the summarization section.
|
18994
|
+
# Corresponds to the JSON property `type`
|
18995
|
+
# @return [String]
|
18996
|
+
attr_accessor :type
|
18997
|
+
|
18998
|
+
def initialize(**args)
|
18999
|
+
update!(**args)
|
19000
|
+
end
|
19001
|
+
|
19002
|
+
# Update properties of this object
|
19003
|
+
def update!(**args)
|
19004
|
+
@definition = args[:definition] if args.key?(:definition)
|
19005
|
+
@key = args[:key] if args.key?(:key)
|
19006
|
+
@type = args[:type] if args.key?(:type)
|
19007
|
+
end
|
19008
|
+
end
|
19009
|
+
|
19010
|
+
# List of summarization sections.
|
19011
|
+
class GoogleCloudDialogflowV2beta1SummarizationSectionList
|
19012
|
+
include Google::Apis::Core::Hashable
|
19013
|
+
|
19014
|
+
# Optional. Summarization sections.
|
19015
|
+
# Corresponds to the JSON property `summarizationSections`
|
19016
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationSection>]
|
19017
|
+
attr_accessor :summarization_sections
|
19018
|
+
|
19019
|
+
def initialize(**args)
|
19020
|
+
update!(**args)
|
19021
|
+
end
|
19022
|
+
|
19023
|
+
# Update properties of this object
|
19024
|
+
def update!(**args)
|
19025
|
+
@summarization_sections = args[:summarization_sections] if args.key?(:summarization_sections)
|
19026
|
+
end
|
19027
|
+
end
|
19028
|
+
|
19029
|
+
# Suggested summary of the conversation.
|
19030
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestion
|
19031
|
+
include Google::Apis::Core::Hashable
|
19032
|
+
|
19033
|
+
# Required. All the parts of generated summary.
|
19034
|
+
# Corresponds to the JSON property `summarySections`
|
19035
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection>]
|
19036
|
+
attr_accessor :summary_sections
|
19037
|
+
|
19038
|
+
def initialize(**args)
|
19039
|
+
update!(**args)
|
19040
|
+
end
|
19041
|
+
|
19042
|
+
# Update properties of this object
|
19043
|
+
def update!(**args)
|
19044
|
+
@summary_sections = args[:summary_sections] if args.key?(:summary_sections)
|
19045
|
+
end
|
19046
|
+
end
|
19047
|
+
|
19048
|
+
# A component of the generated summary.
|
19049
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
|
19050
|
+
include Google::Apis::Core::Hashable
|
19051
|
+
|
19052
|
+
# Required. Name of the section.
|
19053
|
+
# Corresponds to the JSON property `section`
|
19054
|
+
# @return [String]
|
19055
|
+
attr_accessor :section
|
19056
|
+
|
19057
|
+
# Required. Summary text for the section.
|
19058
|
+
# Corresponds to the JSON property `summary`
|
19059
|
+
# @return [String]
|
19060
|
+
attr_accessor :summary
|
19061
|
+
|
19062
|
+
def initialize(**args)
|
19063
|
+
update!(**args)
|
19064
|
+
end
|
19065
|
+
|
19066
|
+
# Update properties of this object
|
19067
|
+
def update!(**args)
|
19068
|
+
@section = args[:section] if args.key?(:section)
|
19069
|
+
@summary = args[:summary] if args.key?(:summary)
|
19070
|
+
end
|
19071
|
+
end
|
19072
|
+
|
18587
19073
|
# Configuration of how speech should be synthesized.
|
18588
19074
|
class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
|
18589
19075
|
include Google::Apis::Core::Hashable
|
@@ -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.86.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240523"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|