google-apis-dialogflow_v2 0.99.0 → 0.101.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.
@@ -3345,6 +3345,22 @@ module Google
|
|
3345
3345
|
# @return [Hash<String,String>]
|
3346
3346
|
attr_accessor :request_headers
|
3347
3347
|
|
3348
|
+
# Optional. The SecretManager secret version resource storing the username:
|
3349
|
+
# password pair for HTTP Basic authentication. Format: `projects/`project`/
|
3350
|
+
# secrets/`secret`/versions/`version``
|
3351
|
+
# Corresponds to the JSON property `secretVersionForUsernamePassword`
|
3352
|
+
# @return [String]
|
3353
|
+
attr_accessor :secret_version_for_username_password
|
3354
|
+
|
3355
|
+
# Optional. The HTTP request headers to send together with webhook requests.
|
3356
|
+
# Header values are stored in SecretManager secret versions. When the same
|
3357
|
+
# header name is specified in both `request_headers` and `
|
3358
|
+
# secret_versions_for_request_headers`, the value in `
|
3359
|
+
# secret_versions_for_request_headers` will be used.
|
3360
|
+
# Corresponds to the JSON property `secretVersionsForRequestHeaders`
|
3361
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue>]
|
3362
|
+
attr_accessor :secret_versions_for_request_headers
|
3363
|
+
|
3348
3364
|
# Optional. Indicate the auth token type generated from the [Diglogflow service
|
3349
3365
|
# agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
|
3350
3366
|
# agent). The generated token is sent in the Authorization header.
|
@@ -3381,6 +3397,8 @@ module Google
|
|
3381
3397
|
@password = args[:password] if args.key?(:password)
|
3382
3398
|
@request_body = args[:request_body] if args.key?(:request_body)
|
3383
3399
|
@request_headers = args[:request_headers] if args.key?(:request_headers)
|
3400
|
+
@secret_version_for_username_password = args[:secret_version_for_username_password] if args.key?(:secret_version_for_username_password)
|
3401
|
+
@secret_versions_for_request_headers = args[:secret_versions_for_request_headers] if args.key?(:secret_versions_for_request_headers)
|
3384
3402
|
@service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
|
3385
3403
|
@uri = args[:uri] if args.key?(:uri)
|
3386
3404
|
@username = args[:username] if args.key?(:username)
|
@@ -3408,6 +3426,13 @@ module Google
|
|
3408
3426
|
# @return [Array<String>]
|
3409
3427
|
attr_accessor :scopes
|
3410
3428
|
|
3429
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
3430
|
+
# client secret. If this field is set, the `client_secret` field will be ignored.
|
3431
|
+
# Format: `projects/`project`/secrets/`secret`/versions/`version``
|
3432
|
+
# Corresponds to the JSON property `secretVersionForClientSecret`
|
3433
|
+
# @return [String]
|
3434
|
+
attr_accessor :secret_version_for_client_secret
|
3435
|
+
|
3411
3436
|
# Required. The token endpoint provided by the 3rd party platform to exchange an
|
3412
3437
|
# access token.
|
3413
3438
|
# Corresponds to the JSON property `tokenEndpoint`
|
@@ -3423,10 +3448,32 @@ module Google
|
|
3423
3448
|
@client_id = args[:client_id] if args.key?(:client_id)
|
3424
3449
|
@client_secret = args[:client_secret] if args.key?(:client_secret)
|
3425
3450
|
@scopes = args[:scopes] if args.key?(:scopes)
|
3451
|
+
@secret_version_for_client_secret = args[:secret_version_for_client_secret] if args.key?(:secret_version_for_client_secret)
|
3426
3452
|
@token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint)
|
3427
3453
|
end
|
3428
3454
|
end
|
3429
3455
|
|
3456
|
+
# Represents the value of an HTTP header stored in a SecretManager secret
|
3457
|
+
# version.
|
3458
|
+
class GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue
|
3459
|
+
include Google::Apis::Core::Hashable
|
3460
|
+
|
3461
|
+
# Required. The SecretManager secret version resource storing the header value.
|
3462
|
+
# Format: `projects/`project`/secrets/`secret`/versions/`version``
|
3463
|
+
# Corresponds to the JSON property `secretVersion`
|
3464
|
+
# @return [String]
|
3465
|
+
attr_accessor :secret_version
|
3466
|
+
|
3467
|
+
def initialize(**args)
|
3468
|
+
update!(**args)
|
3469
|
+
end
|
3470
|
+
|
3471
|
+
# Update properties of this object
|
3472
|
+
def update!(**args)
|
3473
|
+
@secret_version = args[:secret_version] if args.key?(:secret_version)
|
3474
|
+
end
|
3475
|
+
end
|
3476
|
+
|
3430
3477
|
# The request message for a webhook call. The request is sent as a JSON object
|
3431
3478
|
# and the field names will be presented in camel cases. You may see undocumented
|
3432
3479
|
# fields in an actual request. These fields are used internally by Dialogflow
|
@@ -7178,6 +7225,22 @@ module Google
|
|
7178
7225
|
# @return [Hash<String,String>]
|
7179
7226
|
attr_accessor :request_headers
|
7180
7227
|
|
7228
|
+
# Optional. The SecretManager secret version resource storing the username:
|
7229
|
+
# password pair for HTTP Basic authentication. Format: `projects/`project`/
|
7230
|
+
# secrets/`secret`/versions/`version``
|
7231
|
+
# Corresponds to the JSON property `secretVersionForUsernamePassword`
|
7232
|
+
# @return [String]
|
7233
|
+
attr_accessor :secret_version_for_username_password
|
7234
|
+
|
7235
|
+
# Optional. The HTTP request headers to send together with webhook requests.
|
7236
|
+
# Header values are stored in SecretManager secret versions. When the same
|
7237
|
+
# header name is specified in both `request_headers` and `
|
7238
|
+
# secret_versions_for_request_headers`, the value in `
|
7239
|
+
# secret_versions_for_request_headers` will be used.
|
7240
|
+
# Corresponds to the JSON property `secretVersionsForRequestHeaders`
|
7241
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue>]
|
7242
|
+
attr_accessor :secret_versions_for_request_headers
|
7243
|
+
|
7181
7244
|
# Optional. Indicate the auth token type generated from the [Diglogflow service
|
7182
7245
|
# agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
|
7183
7246
|
# agent). The generated token is sent in the Authorization header.
|
@@ -7214,6 +7277,8 @@ module Google
|
|
7214
7277
|
@password = args[:password] if args.key?(:password)
|
7215
7278
|
@request_body = args[:request_body] if args.key?(:request_body)
|
7216
7279
|
@request_headers = args[:request_headers] if args.key?(:request_headers)
|
7280
|
+
@secret_version_for_username_password = args[:secret_version_for_username_password] if args.key?(:secret_version_for_username_password)
|
7281
|
+
@secret_versions_for_request_headers = args[:secret_versions_for_request_headers] if args.key?(:secret_versions_for_request_headers)
|
7217
7282
|
@service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
|
7218
7283
|
@uri = args[:uri] if args.key?(:uri)
|
7219
7284
|
@username = args[:username] if args.key?(:username)
|
@@ -7241,6 +7306,13 @@ module Google
|
|
7241
7306
|
# @return [Array<String>]
|
7242
7307
|
attr_accessor :scopes
|
7243
7308
|
|
7309
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
7310
|
+
# client secret. If this field is set, the `client_secret` field will be ignored.
|
7311
|
+
# Format: `projects/`project`/secrets/`secret`/versions/`version``
|
7312
|
+
# Corresponds to the JSON property `secretVersionForClientSecret`
|
7313
|
+
# @return [String]
|
7314
|
+
attr_accessor :secret_version_for_client_secret
|
7315
|
+
|
7244
7316
|
# Required. The token endpoint provided by the 3rd party platform to exchange an
|
7245
7317
|
# access token.
|
7246
7318
|
# Corresponds to the JSON property `tokenEndpoint`
|
@@ -7256,10 +7328,32 @@ module Google
|
|
7256
7328
|
@client_id = args[:client_id] if args.key?(:client_id)
|
7257
7329
|
@client_secret = args[:client_secret] if args.key?(:client_secret)
|
7258
7330
|
@scopes = args[:scopes] if args.key?(:scopes)
|
7331
|
+
@secret_version_for_client_secret = args[:secret_version_for_client_secret] if args.key?(:secret_version_for_client_secret)
|
7259
7332
|
@token_endpoint = args[:token_endpoint] if args.key?(:token_endpoint)
|
7260
7333
|
end
|
7261
7334
|
end
|
7262
7335
|
|
7336
|
+
# Represents the value of an HTTP header stored in a SecretManager secret
|
7337
|
+
# version.
|
7338
|
+
class GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue
|
7339
|
+
include Google::Apis::Core::Hashable
|
7340
|
+
|
7341
|
+
# Required. The SecretManager secret version resource storing the header value.
|
7342
|
+
# Format: `projects/`project`/secrets/`secret`/versions/`version``
|
7343
|
+
# Corresponds to the JSON property `secretVersion`
|
7344
|
+
# @return [String]
|
7345
|
+
attr_accessor :secret_version
|
7346
|
+
|
7347
|
+
def initialize(**args)
|
7348
|
+
update!(**args)
|
7349
|
+
end
|
7350
|
+
|
7351
|
+
# Update properties of this object
|
7352
|
+
def update!(**args)
|
7353
|
+
@secret_version = args[:secret_version] if args.key?(:secret_version)
|
7354
|
+
end
|
7355
|
+
end
|
7356
|
+
|
7263
7357
|
# The request message for a webhook call. The request is sent as a JSON object
|
7264
7358
|
# and the field names will be presented in camel cases. You may see undocumented
|
7265
7359
|
# fields in an actual request. These fields are used internally by Dialogflow
|
@@ -8801,6 +8895,11 @@ module Google
|
|
8801
8895
|
# @return [String]
|
8802
8896
|
attr_accessor :end_time
|
8803
8897
|
|
8898
|
+
# Output only. The context reference updates provided by external systems.
|
8899
|
+
# Corresponds to the JSON property `ingestedContextReferences`
|
8900
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>]
|
8901
|
+
attr_accessor :ingested_context_references
|
8902
|
+
|
8804
8903
|
# Output only. The current state of the Conversation.
|
8805
8904
|
# Corresponds to the JSON property `lifecycleState`
|
8806
8905
|
# @return [String]
|
@@ -8838,6 +8937,7 @@ module Google
|
|
8838
8937
|
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
8839
8938
|
@conversation_stage = args[:conversation_stage] if args.key?(:conversation_stage)
|
8840
8939
|
@end_time = args[:end_time] if args.key?(:end_time)
|
8940
|
+
@ingested_context_references = args[:ingested_context_references] if args.key?(:ingested_context_references)
|
8841
8941
|
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
8842
8942
|
@name = args[:name] if args.key?(:name)
|
8843
8943
|
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
@@ -8865,6 +8965,76 @@ module Google
|
|
8865
8965
|
end
|
8866
8966
|
end
|
8867
8967
|
|
8968
|
+
# Represents a section of ingested context information.
|
8969
|
+
class GoogleCloudDialogflowV2ConversationContextReference
|
8970
|
+
include Google::Apis::Core::Hashable
|
8971
|
+
|
8972
|
+
# Required. The list of content updates for a context reference.
|
8973
|
+
# Corresponds to the JSON property `contextContents`
|
8974
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReferenceContextContent>]
|
8975
|
+
attr_accessor :context_contents
|
8976
|
+
|
8977
|
+
# Output only. The time the context reference was first created.
|
8978
|
+
# Corresponds to the JSON property `createTime`
|
8979
|
+
# @return [String]
|
8980
|
+
attr_accessor :create_time
|
8981
|
+
|
8982
|
+
# Optional. The language of the information ingested, defaults to "en-US" if not
|
8983
|
+
# set.
|
8984
|
+
# Corresponds to the JSON property `languageCode`
|
8985
|
+
# @return [String]
|
8986
|
+
attr_accessor :language_code
|
8987
|
+
|
8988
|
+
# Required. The mode in which context reference contents are updated.
|
8989
|
+
# Corresponds to the JSON property `updateMode`
|
8990
|
+
# @return [String]
|
8991
|
+
attr_accessor :update_mode
|
8992
|
+
|
8993
|
+
def initialize(**args)
|
8994
|
+
update!(**args)
|
8995
|
+
end
|
8996
|
+
|
8997
|
+
# Update properties of this object
|
8998
|
+
def update!(**args)
|
8999
|
+
@context_contents = args[:context_contents] if args.key?(:context_contents)
|
9000
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
9001
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
9002
|
+
@update_mode = args[:update_mode] if args.key?(:update_mode)
|
9003
|
+
end
|
9004
|
+
end
|
9005
|
+
|
9006
|
+
# Contents ingested.
|
9007
|
+
class GoogleCloudDialogflowV2ConversationContextReferenceContextContent
|
9008
|
+
include Google::Apis::Core::Hashable
|
9009
|
+
|
9010
|
+
# Required. The information ingested in a single request.
|
9011
|
+
# Corresponds to the JSON property `content`
|
9012
|
+
# @return [String]
|
9013
|
+
attr_accessor :content
|
9014
|
+
|
9015
|
+
# Required. The format of the ingested string.
|
9016
|
+
# Corresponds to the JSON property `contentFormat`
|
9017
|
+
# @return [String]
|
9018
|
+
attr_accessor :content_format
|
9019
|
+
|
9020
|
+
# Output only. The time when this information was incorporated into the relevant
|
9021
|
+
# context reference.
|
9022
|
+
# Corresponds to the JSON property `ingestionTime`
|
9023
|
+
# @return [String]
|
9024
|
+
attr_accessor :ingestion_time
|
9025
|
+
|
9026
|
+
def initialize(**args)
|
9027
|
+
update!(**args)
|
9028
|
+
end
|
9029
|
+
|
9030
|
+
# Update properties of this object
|
9031
|
+
def update!(**args)
|
9032
|
+
@content = args[:content] if args.key?(:content)
|
9033
|
+
@content_format = args[:content_format] if args.key?(:content_format)
|
9034
|
+
@ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
|
9035
|
+
end
|
9036
|
+
end
|
9037
|
+
|
8868
9038
|
# Represents a conversation dataset that a user imports raw data into. The data
|
8869
9039
|
# inside ConversationDataset can not be changed after ImportConversationData
|
8870
9040
|
# finishes (and calling ImportConversationData on a dataset that already has
|
@@ -10516,6 +10686,44 @@ module Google
|
|
10516
10686
|
end
|
10517
10687
|
end
|
10518
10688
|
|
10689
|
+
# Free form generator context that customer can configure.
|
10690
|
+
class GoogleCloudDialogflowV2FreeFormContext
|
10691
|
+
include Google::Apis::Core::Hashable
|
10692
|
+
|
10693
|
+
# Optional. Free form text input to LLM.
|
10694
|
+
# Corresponds to the JSON property `text`
|
10695
|
+
# @return [String]
|
10696
|
+
attr_accessor :text
|
10697
|
+
|
10698
|
+
def initialize(**args)
|
10699
|
+
update!(**args)
|
10700
|
+
end
|
10701
|
+
|
10702
|
+
# Update properties of this object
|
10703
|
+
def update!(**args)
|
10704
|
+
@text = args[:text] if args.key?(:text)
|
10705
|
+
end
|
10706
|
+
end
|
10707
|
+
|
10708
|
+
# Suggestion generated using free form generator.
|
10709
|
+
class GoogleCloudDialogflowV2FreeFormSuggestion
|
10710
|
+
include Google::Apis::Core::Hashable
|
10711
|
+
|
10712
|
+
# Required. Free form suggestion.
|
10713
|
+
# Corresponds to the JSON property `response`
|
10714
|
+
# @return [String]
|
10715
|
+
attr_accessor :response
|
10716
|
+
|
10717
|
+
def initialize(**args)
|
10718
|
+
update!(**args)
|
10719
|
+
end
|
10720
|
+
|
10721
|
+
# Update properties of this object
|
10722
|
+
def update!(**args)
|
10723
|
+
@response = args[:response] if args.key?(:response)
|
10724
|
+
end
|
10725
|
+
end
|
10726
|
+
|
10519
10727
|
# By default, your agent responds to a matched intent with a static response. As
|
10520
10728
|
# an alternative, you can provide a more dynamic response by using fulfillment.
|
10521
10729
|
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
@@ -10691,6 +10899,14 @@ module Google
|
|
10691
10899
|
class GoogleCloudDialogflowV2GenerateStatelessSuggestionRequest
|
10692
10900
|
include Google::Apis::Core::Hashable
|
10693
10901
|
|
10902
|
+
# Optional. A section of ingested context information. The key is the name of
|
10903
|
+
# the context reference and the value contains the contents of the context
|
10904
|
+
# reference. The key is used to incorporate ingested context references to
|
10905
|
+
# enhance the generator.
|
10906
|
+
# Corresponds to the JSON property `contextReferences`
|
10907
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>]
|
10908
|
+
attr_accessor :context_references
|
10909
|
+
|
10694
10910
|
# Context of the conversation, including transcripts.
|
10695
10911
|
# Corresponds to the JSON property `conversationContext`
|
10696
10912
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContext]
|
@@ -10719,6 +10935,7 @@ module Google
|
|
10719
10935
|
|
10720
10936
|
# Update properties of this object
|
10721
10937
|
def update!(**args)
|
10938
|
+
@context_references = args[:context_references] if args.key?(:context_references)
|
10722
10939
|
@conversation_context = args[:conversation_context] if args.key?(:conversation_context)
|
10723
10940
|
@generator = args[:generator] if args.key?(:generator)
|
10724
10941
|
@generator_name = args[:generator_name] if args.key?(:generator_name)
|
@@ -10881,6 +11098,92 @@ module Google
|
|
10881
11098
|
end
|
10882
11099
|
end
|
10883
11100
|
|
11101
|
+
# The request message for Conversations.GenerateSuggestions.
|
11102
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsRequest
|
11103
|
+
include Google::Apis::Core::Hashable
|
11104
|
+
|
11105
|
+
# Optional. The name of the latest conversation message for which the request is
|
11106
|
+
# triggered. Format: `projects//locations//conversations//messages/`.
|
11107
|
+
# Corresponds to the JSON property `latestMessage`
|
11108
|
+
# @return [String]
|
11109
|
+
attr_accessor :latest_message
|
11110
|
+
|
11111
|
+
# Optional. A list of trigger events. Only generators configured in the
|
11112
|
+
# conversation_profile whose trigger_event is listed here will be triggered.
|
11113
|
+
# Corresponds to the JSON property `triggerEvents`
|
11114
|
+
# @return [Array<String>]
|
11115
|
+
attr_accessor :trigger_events
|
11116
|
+
|
11117
|
+
def initialize(**args)
|
11118
|
+
update!(**args)
|
11119
|
+
end
|
11120
|
+
|
11121
|
+
# Update properties of this object
|
11122
|
+
def update!(**args)
|
11123
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
11124
|
+
@trigger_events = args[:trigger_events] if args.key?(:trigger_events)
|
11125
|
+
end
|
11126
|
+
end
|
11127
|
+
|
11128
|
+
# The response message for Conversations.GenerateSuggestions.
|
11129
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
11130
|
+
include Google::Apis::Core::Hashable
|
11131
|
+
|
11132
|
+
# The answers generated for the conversation based on context.
|
11133
|
+
# Corresponds to the JSON property `generatorSuggestionAnswers`
|
11134
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
|
11135
|
+
attr_accessor :generator_suggestion_answers
|
11136
|
+
|
11137
|
+
# The name of the latest conversation message used as context for compiling
|
11138
|
+
# suggestion. Format: `projects//locations//conversations//messages/`.
|
11139
|
+
# Corresponds to the JSON property `latestMessage`
|
11140
|
+
# @return [String]
|
11141
|
+
attr_accessor :latest_message
|
11142
|
+
|
11143
|
+
def initialize(**args)
|
11144
|
+
update!(**args)
|
11145
|
+
end
|
11146
|
+
|
11147
|
+
# Update properties of this object
|
11148
|
+
def update!(**args)
|
11149
|
+
@generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
|
11150
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
11151
|
+
end
|
11152
|
+
end
|
11153
|
+
|
11154
|
+
# A GeneratorSuggestion answer.
|
11155
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
11156
|
+
include Google::Apis::Core::Hashable
|
11157
|
+
|
11158
|
+
# Answer record that uniquely identifies the suggestion. This can be used to
|
11159
|
+
# provide suggestion feedback.
|
11160
|
+
# Corresponds to the JSON property `answerRecord`
|
11161
|
+
# @return [String]
|
11162
|
+
attr_accessor :answer_record
|
11163
|
+
|
11164
|
+
# Suggestion generated using a Generator.
|
11165
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
11166
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestion]
|
11167
|
+
attr_accessor :generator_suggestion
|
11168
|
+
|
11169
|
+
# The name of the generator used to generate this suggestion. Format: `projects//
|
11170
|
+
# locations//generators/`.
|
11171
|
+
# Corresponds to the JSON property `sourceGenerator`
|
11172
|
+
# @return [String]
|
11173
|
+
attr_accessor :source_generator
|
11174
|
+
|
11175
|
+
def initialize(**args)
|
11176
|
+
update!(**args)
|
11177
|
+
end
|
11178
|
+
|
11179
|
+
# Update properties of this object
|
11180
|
+
def update!(**args)
|
11181
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
11182
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
11183
|
+
@source_generator = args[:source_generator] if args.key?(:source_generator)
|
11184
|
+
end
|
11185
|
+
end
|
11186
|
+
|
10884
11187
|
# LLM generator.
|
10885
11188
|
class GoogleCloudDialogflowV2Generator
|
10886
11189
|
include Google::Apis::Core::Hashable
|
@@ -10895,6 +11198,11 @@ module Google
|
|
10895
11198
|
# @return [String]
|
10896
11199
|
attr_accessor :description
|
10897
11200
|
|
11201
|
+
# Free form generator context that customer can configure.
|
11202
|
+
# Corresponds to the JSON property `freeFormContext`
|
11203
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormContext]
|
11204
|
+
attr_accessor :free_form_context
|
11205
|
+
|
10898
11206
|
# The parameters of inference.
|
10899
11207
|
# Corresponds to the JSON property `inferenceParameter`
|
10900
11208
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InferenceParameter]
|
@@ -10906,11 +11214,25 @@ module Google
|
|
10906
11214
|
# @return [String]
|
10907
11215
|
attr_accessor :name
|
10908
11216
|
|
11217
|
+
# Optional. The published Large Language Model name. * To use the latest model
|
11218
|
+
# version, specify the model name without version number. Example: `text-bison` *
|
11219
|
+
# To use a stable model version, specify the version number as well. Example: `
|
11220
|
+
# text-bison@002`.
|
11221
|
+
# Corresponds to the JSON property `publishedModel`
|
11222
|
+
# @return [String]
|
11223
|
+
attr_accessor :published_model
|
11224
|
+
|
10909
11225
|
# Summarization context that customer can configure.
|
10910
11226
|
# Corresponds to the JSON property `summarizationContext`
|
10911
11227
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationContext]
|
10912
11228
|
attr_accessor :summarization_context
|
10913
11229
|
|
11230
|
+
# Optional. Resource names of the tools that the generator can choose from.
|
11231
|
+
# Format: `projects//locations//tools/`.
|
11232
|
+
# Corresponds to the JSON property `tools`
|
11233
|
+
# @return [Array<String>]
|
11234
|
+
attr_accessor :tools
|
11235
|
+
|
10914
11236
|
# Optional. The trigger event of the generator. It defines when the generator is
|
10915
11237
|
# triggered in a conversation.
|
10916
11238
|
# Corresponds to the JSON property `triggerEvent`
|
@@ -10930,9 +11252,12 @@ module Google
|
|
10930
11252
|
def update!(**args)
|
10931
11253
|
@create_time = args[:create_time] if args.key?(:create_time)
|
10932
11254
|
@description = args[:description] if args.key?(:description)
|
11255
|
+
@free_form_context = args[:free_form_context] if args.key?(:free_form_context)
|
10933
11256
|
@inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
|
10934
11257
|
@name = args[:name] if args.key?(:name)
|
11258
|
+
@published_model = args[:published_model] if args.key?(:published_model)
|
10935
11259
|
@summarization_context = args[:summarization_context] if args.key?(:summarization_context)
|
11260
|
+
@tools = args[:tools] if args.key?(:tools)
|
10936
11261
|
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
10937
11262
|
@update_time = args[:update_time] if args.key?(:update_time)
|
10938
11263
|
end
|
@@ -10942,18 +11267,55 @@ module Google
|
|
10942
11267
|
class GoogleCloudDialogflowV2GeneratorSuggestion
|
10943
11268
|
include Google::Apis::Core::Hashable
|
10944
11269
|
|
11270
|
+
# Suggestion generated using free form generator.
|
11271
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
11272
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FreeFormSuggestion]
|
11273
|
+
attr_accessor :free_form_suggestion
|
11274
|
+
|
10945
11275
|
# Suggested summary of the conversation.
|
10946
11276
|
# Corresponds to the JSON property `summarySuggestion`
|
10947
11277
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarySuggestion]
|
10948
11278
|
attr_accessor :summary_suggestion
|
10949
11279
|
|
11280
|
+
# Optional. List of request and response for tool calls executed.
|
11281
|
+
# Corresponds to the JSON property `toolCallInfo`
|
11282
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo>]
|
11283
|
+
attr_accessor :tool_call_info
|
11284
|
+
|
10950
11285
|
def initialize(**args)
|
10951
11286
|
update!(**args)
|
10952
11287
|
end
|
10953
11288
|
|
10954
11289
|
# Update properties of this object
|
10955
11290
|
def update!(**args)
|
11291
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
10956
11292
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
11293
|
+
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
11294
|
+
end
|
11295
|
+
end
|
11296
|
+
|
11297
|
+
# Request and response for a tool call.
|
11298
|
+
class GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo
|
11299
|
+
include Google::Apis::Core::Hashable
|
11300
|
+
|
11301
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
11302
|
+
# Corresponds to the JSON property `toolCall`
|
11303
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolCall]
|
11304
|
+
attr_accessor :tool_call
|
11305
|
+
|
11306
|
+
# The result of calling a tool's action.
|
11307
|
+
# Corresponds to the JSON property `toolCallResult`
|
11308
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolCallResult]
|
11309
|
+
attr_accessor :tool_call_result
|
11310
|
+
|
11311
|
+
def initialize(**args)
|
11312
|
+
update!(**args)
|
11313
|
+
end
|
11314
|
+
|
11315
|
+
# Update properties of this object
|
11316
|
+
def update!(**args)
|
11317
|
+
@tool_call = args[:tool_call] if args.key?(:tool_call)
|
11318
|
+
@tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
|
10957
11319
|
end
|
10958
11320
|
end
|
10959
11321
|
|
@@ -11848,6 +12210,47 @@ module Google
|
|
11848
12210
|
end
|
11849
12211
|
end
|
11850
12212
|
|
12213
|
+
# The request message for ConversationsService.IngestContextReferences.
|
12214
|
+
class GoogleCloudDialogflowV2IngestContextReferencesRequest
|
12215
|
+
include Google::Apis::Core::Hashable
|
12216
|
+
|
12217
|
+
# Required. The context references to ingest. The key is the name of the context
|
12218
|
+
# reference and the value contains the contents of the context reference. The
|
12219
|
+
# key is used to incorporate ingested context references to enhance the
|
12220
|
+
# generator.
|
12221
|
+
# Corresponds to the JSON property `contextReferences`
|
12222
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>]
|
12223
|
+
attr_accessor :context_references
|
12224
|
+
|
12225
|
+
def initialize(**args)
|
12226
|
+
update!(**args)
|
12227
|
+
end
|
12228
|
+
|
12229
|
+
# Update properties of this object
|
12230
|
+
def update!(**args)
|
12231
|
+
@context_references = args[:context_references] if args.key?(:context_references)
|
12232
|
+
end
|
12233
|
+
end
|
12234
|
+
|
12235
|
+
# The response message for ConversationsService.IngestContextReferences.
|
12236
|
+
class GoogleCloudDialogflowV2IngestContextReferencesResponse
|
12237
|
+
include Google::Apis::Core::Hashable
|
12238
|
+
|
12239
|
+
# All context references ingested.
|
12240
|
+
# Corresponds to the JSON property `ingestedContextReferences`
|
12241
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationContextReference>]
|
12242
|
+
attr_accessor :ingested_context_references
|
12243
|
+
|
12244
|
+
def initialize(**args)
|
12245
|
+
update!(**args)
|
12246
|
+
end
|
12247
|
+
|
12248
|
+
# Update properties of this object
|
12249
|
+
def update!(**args)
|
12250
|
+
@ingested_context_references = args[:ingested_context_references] if args.key?(:ingested_context_references)
|
12251
|
+
end
|
12252
|
+
end
|
12253
|
+
|
11851
12254
|
# Metadata for initializing a location-level encryption specification.
|
11852
12255
|
class GoogleCloudDialogflowV2InitializeEncryptionSpecMetadata
|
11853
12256
|
include Google::Apis::Core::Hashable
|
@@ -16224,6 +16627,11 @@ module Google
|
|
16224
16627
|
# @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
|
16225
16628
|
attr_accessor :error
|
16226
16629
|
|
16630
|
+
# The response message for Conversations.GenerateSuggestions.
|
16631
|
+
# Corresponds to the JSON property `generateSuggestionsResponse`
|
16632
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
|
16633
|
+
attr_accessor :generate_suggestions_response
|
16634
|
+
|
16227
16635
|
# The response message for Participants.SuggestArticles.
|
16228
16636
|
# Corresponds to the JSON property `suggestArticlesResponse`
|
16229
16637
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse]
|
@@ -16251,6 +16659,7 @@ module Google
|
|
16251
16659
|
# Update properties of this object
|
16252
16660
|
def update!(**args)
|
16253
16661
|
@error = args[:error] if args.key?(:error)
|
16662
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
16254
16663
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
16255
16664
|
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
16256
16665
|
@suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
|
@@ -16525,20 +16934,129 @@ module Google
|
|
16525
16934
|
end
|
16526
16935
|
end
|
16527
16936
|
|
16528
|
-
#
|
16529
|
-
class
|
16937
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
16938
|
+
class GoogleCloudDialogflowV2ToolCall
|
16530
16939
|
include Google::Apis::Core::Hashable
|
16531
16940
|
|
16941
|
+
# Required. The name of the tool's action associated with this call.
|
16942
|
+
# Corresponds to the JSON property `action`
|
16943
|
+
# @return [String]
|
16944
|
+
attr_accessor :action
|
16945
|
+
|
16946
|
+
# Output only. Create time of the tool call.
|
16947
|
+
# Corresponds to the JSON property `createTime`
|
16948
|
+
# @return [String]
|
16949
|
+
attr_accessor :create_time
|
16950
|
+
|
16951
|
+
# Optional. The action's input parameters.
|
16952
|
+
# Corresponds to the JSON property `inputParameters`
|
16953
|
+
# @return [Hash<String,Object>]
|
16954
|
+
attr_accessor :input_parameters
|
16955
|
+
|
16956
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
16957
|
+
# tools/`.
|
16958
|
+
# Corresponds to the JSON property `tool`
|
16959
|
+
# @return [String]
|
16960
|
+
attr_accessor :tool
|
16961
|
+
|
16532
16962
|
def initialize(**args)
|
16533
16963
|
update!(**args)
|
16534
16964
|
end
|
16535
16965
|
|
16536
16966
|
# Update properties of this object
|
16537
16967
|
def update!(**args)
|
16968
|
+
@action = args[:action] if args.key?(:action)
|
16969
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
16970
|
+
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
16971
|
+
@tool = args[:tool] if args.key?(:tool)
|
16538
16972
|
end
|
16539
16973
|
end
|
16540
16974
|
|
16541
|
-
#
|
16975
|
+
# The result of calling a tool's action.
|
16976
|
+
class GoogleCloudDialogflowV2ToolCallResult
|
16977
|
+
include Google::Apis::Core::Hashable
|
16978
|
+
|
16979
|
+
# Required. The name of the tool's action associated with this call.
|
16980
|
+
# Corresponds to the JSON property `action`
|
16981
|
+
# @return [String]
|
16982
|
+
attr_accessor :action
|
16983
|
+
|
16984
|
+
# Only populated if the response content is utf-8 encoded.
|
16985
|
+
# Corresponds to the JSON property `content`
|
16986
|
+
# @return [String]
|
16987
|
+
attr_accessor :content
|
16988
|
+
|
16989
|
+
# Output only. Create time of the tool call result.
|
16990
|
+
# Corresponds to the JSON property `createTime`
|
16991
|
+
# @return [String]
|
16992
|
+
attr_accessor :create_time
|
16993
|
+
|
16994
|
+
# An error produced by the tool call.
|
16995
|
+
# Corresponds to the JSON property `error`
|
16996
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ToolCallResultError]
|
16997
|
+
attr_accessor :error
|
16998
|
+
|
16999
|
+
# Only populated if the response content is not utf-8 encoded. (by definition
|
17000
|
+
# byte fields are base64 encoded).
|
17001
|
+
# Corresponds to the JSON property `rawContent`
|
17002
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
17003
|
+
# @return [String]
|
17004
|
+
attr_accessor :raw_content
|
17005
|
+
|
17006
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
17007
|
+
# tools/`.
|
17008
|
+
# Corresponds to the JSON property `tool`
|
17009
|
+
# @return [String]
|
17010
|
+
attr_accessor :tool
|
17011
|
+
|
17012
|
+
def initialize(**args)
|
17013
|
+
update!(**args)
|
17014
|
+
end
|
17015
|
+
|
17016
|
+
# Update properties of this object
|
17017
|
+
def update!(**args)
|
17018
|
+
@action = args[:action] if args.key?(:action)
|
17019
|
+
@content = args[:content] if args.key?(:content)
|
17020
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
17021
|
+
@error = args[:error] if args.key?(:error)
|
17022
|
+
@raw_content = args[:raw_content] if args.key?(:raw_content)
|
17023
|
+
@tool = args[:tool] if args.key?(:tool)
|
17024
|
+
end
|
17025
|
+
end
|
17026
|
+
|
17027
|
+
# An error produced by the tool call.
|
17028
|
+
class GoogleCloudDialogflowV2ToolCallResultError
|
17029
|
+
include Google::Apis::Core::Hashable
|
17030
|
+
|
17031
|
+
# Optional. The error message of the function.
|
17032
|
+
# Corresponds to the JSON property `message`
|
17033
|
+
# @return [String]
|
17034
|
+
attr_accessor :message
|
17035
|
+
|
17036
|
+
def initialize(**args)
|
17037
|
+
update!(**args)
|
17038
|
+
end
|
17039
|
+
|
17040
|
+
# Update properties of this object
|
17041
|
+
def update!(**args)
|
17042
|
+
@message = args[:message] if args.key?(:message)
|
17043
|
+
end
|
17044
|
+
end
|
17045
|
+
|
17046
|
+
# The request message for Agents.TrainAgent.
|
17047
|
+
class GoogleCloudDialogflowV2TrainAgentRequest
|
17048
|
+
include Google::Apis::Core::Hashable
|
17049
|
+
|
17050
|
+
def initialize(**args)
|
17051
|
+
update!(**args)
|
17052
|
+
end
|
17053
|
+
|
17054
|
+
# Update properties of this object
|
17055
|
+
def update!(**args)
|
17056
|
+
end
|
17057
|
+
end
|
17058
|
+
|
17059
|
+
# Metadata for a ConversationModels.UndeployConversationModel operation.
|
16542
17060
|
class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
|
16543
17061
|
include Google::Apis::Core::Hashable
|
16544
17062
|
|
@@ -17442,6 +17960,25 @@ module Google
|
|
17442
17960
|
end
|
17443
17961
|
end
|
17444
17962
|
|
17963
|
+
# Suggestion generated using free form generator.
|
17964
|
+
class GoogleCloudDialogflowV2beta1FreeFormSuggestion
|
17965
|
+
include Google::Apis::Core::Hashable
|
17966
|
+
|
17967
|
+
# Required. Free form suggestion.
|
17968
|
+
# Corresponds to the JSON property `response`
|
17969
|
+
# @return [String]
|
17970
|
+
attr_accessor :response
|
17971
|
+
|
17972
|
+
def initialize(**args)
|
17973
|
+
update!(**args)
|
17974
|
+
end
|
17975
|
+
|
17976
|
+
# Update properties of this object
|
17977
|
+
def update!(**args)
|
17978
|
+
@response = args[:response] if args.key?(:response)
|
17979
|
+
end
|
17980
|
+
end
|
17981
|
+
|
17445
17982
|
# Google Cloud Storage location for the output.
|
17446
17983
|
class GoogleCloudDialogflowV2beta1GcsDestination
|
17447
17984
|
include Google::Apis::Core::Hashable
|
@@ -17463,6 +18000,121 @@ module Google
|
|
17463
18000
|
end
|
17464
18001
|
end
|
17465
18002
|
|
18003
|
+
# The response message for Conversations.GenerateSuggestions.
|
18004
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
18005
|
+
include Google::Apis::Core::Hashable
|
18006
|
+
|
18007
|
+
# The answers generated for the conversation based on context.
|
18008
|
+
# Corresponds to the JSON property `generatorSuggestionAnswers`
|
18009
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
|
18010
|
+
attr_accessor :generator_suggestion_answers
|
18011
|
+
|
18012
|
+
# The name of the latest conversation message used as context for compiling
|
18013
|
+
# suggestion. Format: `projects//locations//conversations//messages/`.
|
18014
|
+
# Corresponds to the JSON property `latestMessage`
|
18015
|
+
# @return [String]
|
18016
|
+
attr_accessor :latest_message
|
18017
|
+
|
18018
|
+
def initialize(**args)
|
18019
|
+
update!(**args)
|
18020
|
+
end
|
18021
|
+
|
18022
|
+
# Update properties of this object
|
18023
|
+
def update!(**args)
|
18024
|
+
@generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
|
18025
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
18026
|
+
end
|
18027
|
+
end
|
18028
|
+
|
18029
|
+
# A GeneratorSuggestion answer.
|
18030
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
18031
|
+
include Google::Apis::Core::Hashable
|
18032
|
+
|
18033
|
+
# Answer record that uniquely identifies the suggestion. This can be used to
|
18034
|
+
# provide suggestion feedback.
|
18035
|
+
# Corresponds to the JSON property `answerRecord`
|
18036
|
+
# @return [String]
|
18037
|
+
attr_accessor :answer_record
|
18038
|
+
|
18039
|
+
# Suggestion generated using a Generator.
|
18040
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
18041
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
|
18042
|
+
attr_accessor :generator_suggestion
|
18043
|
+
|
18044
|
+
# The name of the generator used to generate this suggestion. Format: `projects//
|
18045
|
+
# locations//generators/`.
|
18046
|
+
# Corresponds to the JSON property `sourceGenerator`
|
18047
|
+
# @return [String]
|
18048
|
+
attr_accessor :source_generator
|
18049
|
+
|
18050
|
+
def initialize(**args)
|
18051
|
+
update!(**args)
|
18052
|
+
end
|
18053
|
+
|
18054
|
+
# Update properties of this object
|
18055
|
+
def update!(**args)
|
18056
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
18057
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
18058
|
+
@source_generator = args[:source_generator] if args.key?(:source_generator)
|
18059
|
+
end
|
18060
|
+
end
|
18061
|
+
|
18062
|
+
# Suggestion generated using a Generator.
|
18063
|
+
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
18064
|
+
include Google::Apis::Core::Hashable
|
18065
|
+
|
18066
|
+
# Suggestion generated using free form generator.
|
18067
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
18068
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
|
18069
|
+
attr_accessor :free_form_suggestion
|
18070
|
+
|
18071
|
+
# Suggested summary of the conversation.
|
18072
|
+
# Corresponds to the JSON property `summarySuggestion`
|
18073
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SummarySuggestion]
|
18074
|
+
attr_accessor :summary_suggestion
|
18075
|
+
|
18076
|
+
# Optional. List of request and response for tool calls executed.
|
18077
|
+
# Corresponds to the JSON property `toolCallInfo`
|
18078
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo>]
|
18079
|
+
attr_accessor :tool_call_info
|
18080
|
+
|
18081
|
+
def initialize(**args)
|
18082
|
+
update!(**args)
|
18083
|
+
end
|
18084
|
+
|
18085
|
+
# Update properties of this object
|
18086
|
+
def update!(**args)
|
18087
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
18088
|
+
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
18089
|
+
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
18090
|
+
end
|
18091
|
+
end
|
18092
|
+
|
18093
|
+
# Request and response for a tool call.
|
18094
|
+
class GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo
|
18095
|
+
include Google::Apis::Core::Hashable
|
18096
|
+
|
18097
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
18098
|
+
# Corresponds to the JSON property `toolCall`
|
18099
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ToolCall]
|
18100
|
+
attr_accessor :tool_call
|
18101
|
+
|
18102
|
+
# The result of calling a tool's action.
|
18103
|
+
# Corresponds to the JSON property `toolCallResult`
|
18104
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ToolCallResult]
|
18105
|
+
attr_accessor :tool_call_result
|
18106
|
+
|
18107
|
+
def initialize(**args)
|
18108
|
+
update!(**args)
|
18109
|
+
end
|
18110
|
+
|
18111
|
+
# Update properties of this object
|
18112
|
+
def update!(**args)
|
18113
|
+
@tool_call = args[:tool_call] if args.key?(:tool_call)
|
18114
|
+
@tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
|
18115
|
+
end
|
18116
|
+
end
|
18117
|
+
|
17466
18118
|
# Output only. Represents a notification sent to Pub/Sub subscribers for agent
|
17467
18119
|
# assistant events in a specific conversation.
|
17468
18120
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
|
@@ -20618,6 +21270,11 @@ module Google
|
|
20618
21270
|
# @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
|
20619
21271
|
attr_accessor :error
|
20620
21272
|
|
21273
|
+
# The response message for Conversations.GenerateSuggestions.
|
21274
|
+
# Corresponds to the JSON property `generateSuggestionsResponse`
|
21275
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse]
|
21276
|
+
attr_accessor :generate_suggestions_response
|
21277
|
+
|
20621
21278
|
# The response message for Participants.SuggestArticles.
|
20622
21279
|
# Corresponds to the JSON property `suggestArticlesResponse`
|
20623
21280
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
|
@@ -20655,6 +21312,7 @@ module Google
|
|
20655
21312
|
# Update properties of this object
|
20656
21313
|
def update!(**args)
|
20657
21314
|
@error = args[:error] if args.key?(:error)
|
21315
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
20658
21316
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
20659
21317
|
@suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
|
20660
21318
|
@suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_response)
|
@@ -20664,6 +21322,50 @@ module Google
|
|
20664
21322
|
end
|
20665
21323
|
end
|
20666
21324
|
|
21325
|
+
# Suggested summary of the conversation.
|
21326
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestion
|
21327
|
+
include Google::Apis::Core::Hashable
|
21328
|
+
|
21329
|
+
# Required. All the parts of generated summary.
|
21330
|
+
# Corresponds to the JSON property `summarySections`
|
21331
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection>]
|
21332
|
+
attr_accessor :summary_sections
|
21333
|
+
|
21334
|
+
def initialize(**args)
|
21335
|
+
update!(**args)
|
21336
|
+
end
|
21337
|
+
|
21338
|
+
# Update properties of this object
|
21339
|
+
def update!(**args)
|
21340
|
+
@summary_sections = args[:summary_sections] if args.key?(:summary_sections)
|
21341
|
+
end
|
21342
|
+
end
|
21343
|
+
|
21344
|
+
# A component of the generated summary.
|
21345
|
+
class GoogleCloudDialogflowV2beta1SummarySuggestionSummarySection
|
21346
|
+
include Google::Apis::Core::Hashable
|
21347
|
+
|
21348
|
+
# Required. Name of the section.
|
21349
|
+
# Corresponds to the JSON property `section`
|
21350
|
+
# @return [String]
|
21351
|
+
attr_accessor :section
|
21352
|
+
|
21353
|
+
# Required. Summary text for the section.
|
21354
|
+
# Corresponds to the JSON property `summary`
|
21355
|
+
# @return [String]
|
21356
|
+
attr_accessor :summary
|
21357
|
+
|
21358
|
+
def initialize(**args)
|
21359
|
+
update!(**args)
|
21360
|
+
end
|
21361
|
+
|
21362
|
+
# Update properties of this object
|
21363
|
+
def update!(**args)
|
21364
|
+
@section = args[:section] if args.key?(:section)
|
21365
|
+
@summary = args[:summary] if args.key?(:summary)
|
21366
|
+
end
|
21367
|
+
end
|
21368
|
+
|
20667
21369
|
# A wrapper of repeated TelephonyDtmf digits.
|
20668
21370
|
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
20669
21371
|
include Google::Apis::Core::Hashable
|
@@ -20683,6 +21385,115 @@ module Google
|
|
20683
21385
|
end
|
20684
21386
|
end
|
20685
21387
|
|
21388
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
21389
|
+
class GoogleCloudDialogflowV2beta1ToolCall
|
21390
|
+
include Google::Apis::Core::Hashable
|
21391
|
+
|
21392
|
+
# Required. The name of the tool's action associated with this call.
|
21393
|
+
# Corresponds to the JSON property `action`
|
21394
|
+
# @return [String]
|
21395
|
+
attr_accessor :action
|
21396
|
+
|
21397
|
+
# Output only. Create time of the tool call.
|
21398
|
+
# Corresponds to the JSON property `createTime`
|
21399
|
+
# @return [String]
|
21400
|
+
attr_accessor :create_time
|
21401
|
+
|
21402
|
+
# Optional. The action's input parameters.
|
21403
|
+
# Corresponds to the JSON property `inputParameters`
|
21404
|
+
# @return [Hash<String,Object>]
|
21405
|
+
attr_accessor :input_parameters
|
21406
|
+
|
21407
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
21408
|
+
# tools/`.
|
21409
|
+
# Corresponds to the JSON property `tool`
|
21410
|
+
# @return [String]
|
21411
|
+
attr_accessor :tool
|
21412
|
+
|
21413
|
+
def initialize(**args)
|
21414
|
+
update!(**args)
|
21415
|
+
end
|
21416
|
+
|
21417
|
+
# Update properties of this object
|
21418
|
+
def update!(**args)
|
21419
|
+
@action = args[:action] if args.key?(:action)
|
21420
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
21421
|
+
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
21422
|
+
@tool = args[:tool] if args.key?(:tool)
|
21423
|
+
end
|
21424
|
+
end
|
21425
|
+
|
21426
|
+
# The result of calling a tool's action.
|
21427
|
+
class GoogleCloudDialogflowV2beta1ToolCallResult
|
21428
|
+
include Google::Apis::Core::Hashable
|
21429
|
+
|
21430
|
+
# Required. The name of the tool's action associated with this call.
|
21431
|
+
# Corresponds to the JSON property `action`
|
21432
|
+
# @return [String]
|
21433
|
+
attr_accessor :action
|
21434
|
+
|
21435
|
+
# Only populated if the response content is utf-8 encoded.
|
21436
|
+
# Corresponds to the JSON property `content`
|
21437
|
+
# @return [String]
|
21438
|
+
attr_accessor :content
|
21439
|
+
|
21440
|
+
# Output only. Create time of the tool call result.
|
21441
|
+
# Corresponds to the JSON property `createTime`
|
21442
|
+
# @return [String]
|
21443
|
+
attr_accessor :create_time
|
21444
|
+
|
21445
|
+
# An error produced by the tool call.
|
21446
|
+
# Corresponds to the JSON property `error`
|
21447
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ToolCallResultError]
|
21448
|
+
attr_accessor :error
|
21449
|
+
|
21450
|
+
# Only populated if the response content is not utf-8 encoded. (by definition
|
21451
|
+
# byte fields are base64 encoded).
|
21452
|
+
# Corresponds to the JSON property `rawContent`
|
21453
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
21454
|
+
# @return [String]
|
21455
|
+
attr_accessor :raw_content
|
21456
|
+
|
21457
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
21458
|
+
# tools/`.
|
21459
|
+
# Corresponds to the JSON property `tool`
|
21460
|
+
# @return [String]
|
21461
|
+
attr_accessor :tool
|
21462
|
+
|
21463
|
+
def initialize(**args)
|
21464
|
+
update!(**args)
|
21465
|
+
end
|
21466
|
+
|
21467
|
+
# Update properties of this object
|
21468
|
+
def update!(**args)
|
21469
|
+
@action = args[:action] if args.key?(:action)
|
21470
|
+
@content = args[:content] if args.key?(:content)
|
21471
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
21472
|
+
@error = args[:error] if args.key?(:error)
|
21473
|
+
@raw_content = args[:raw_content] if args.key?(:raw_content)
|
21474
|
+
@tool = args[:tool] if args.key?(:tool)
|
21475
|
+
end
|
21476
|
+
end
|
21477
|
+
|
21478
|
+
# An error produced by the tool call.
|
21479
|
+
class GoogleCloudDialogflowV2beta1ToolCallResultError
|
21480
|
+
include Google::Apis::Core::Hashable
|
21481
|
+
|
21482
|
+
# Optional. The error message of the function.
|
21483
|
+
# Corresponds to the JSON property `message`
|
21484
|
+
# @return [String]
|
21485
|
+
attr_accessor :message
|
21486
|
+
|
21487
|
+
def initialize(**args)
|
21488
|
+
update!(**args)
|
21489
|
+
end
|
21490
|
+
|
21491
|
+
# Update properties of this object
|
21492
|
+
def update!(**args)
|
21493
|
+
@message = args[:message] if args.key?(:message)
|
21494
|
+
end
|
21495
|
+
end
|
21496
|
+
|
20686
21497
|
# The request message for a webhook call.
|
20687
21498
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
20688
21499
|
include Google::Apis::Core::Hashable
|