google-apis-dialogflow_v2beta1 0.97.0 → 0.99.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 +8 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +816 -5
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +399 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +113 -1
- metadata +3 -3
@@ -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::DialogflowV2beta1::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::DialogflowV2beta1::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
|
@@ -8425,6 +8519,25 @@ module Google
|
|
8425
8519
|
end
|
8426
8520
|
end
|
8427
8521
|
|
8522
|
+
# Suggestion generated using free form generator.
|
8523
|
+
class GoogleCloudDialogflowV2FreeFormSuggestion
|
8524
|
+
include Google::Apis::Core::Hashable
|
8525
|
+
|
8526
|
+
# Required. Free form suggestion.
|
8527
|
+
# Corresponds to the JSON property `response`
|
8528
|
+
# @return [String]
|
8529
|
+
attr_accessor :response
|
8530
|
+
|
8531
|
+
def initialize(**args)
|
8532
|
+
update!(**args)
|
8533
|
+
end
|
8534
|
+
|
8535
|
+
# Update properties of this object
|
8536
|
+
def update!(**args)
|
8537
|
+
@response = args[:response] if args.key?(:response)
|
8538
|
+
end
|
8539
|
+
end
|
8540
|
+
|
8428
8541
|
# Google Cloud Storage location for the output.
|
8429
8542
|
class GoogleCloudDialogflowV2GcsDestination
|
8430
8543
|
include Google::Apis::Core::Hashable
|
@@ -8446,6 +8559,121 @@ module Google
|
|
8446
8559
|
end
|
8447
8560
|
end
|
8448
8561
|
|
8562
|
+
# The response message for Conversations.GenerateSuggestions.
|
8563
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponse
|
8564
|
+
include Google::Apis::Core::Hashable
|
8565
|
+
|
8566
|
+
# The answers generated for the conversation based on context.
|
8567
|
+
# Corresponds to the JSON property `generatorSuggestionAnswers`
|
8568
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
|
8569
|
+
attr_accessor :generator_suggestion_answers
|
8570
|
+
|
8571
|
+
# The name of the latest conversation message used as context for compiling
|
8572
|
+
# suggestion. Format: `projects//locations//conversations//messages/`.
|
8573
|
+
# Corresponds to the JSON property `latestMessage`
|
8574
|
+
# @return [String]
|
8575
|
+
attr_accessor :latest_message
|
8576
|
+
|
8577
|
+
def initialize(**args)
|
8578
|
+
update!(**args)
|
8579
|
+
end
|
8580
|
+
|
8581
|
+
# Update properties of this object
|
8582
|
+
def update!(**args)
|
8583
|
+
@generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
|
8584
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
8585
|
+
end
|
8586
|
+
end
|
8587
|
+
|
8588
|
+
# A GeneratorSuggestion answer.
|
8589
|
+
class GoogleCloudDialogflowV2GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
8590
|
+
include Google::Apis::Core::Hashable
|
8591
|
+
|
8592
|
+
# Answer record that uniquely identifies the suggestion. This can be used to
|
8593
|
+
# provide suggestion feedback.
|
8594
|
+
# Corresponds to the JSON property `answerRecord`
|
8595
|
+
# @return [String]
|
8596
|
+
attr_accessor :answer_record
|
8597
|
+
|
8598
|
+
# Suggestion generated using a Generator.
|
8599
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
8600
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GeneratorSuggestion]
|
8601
|
+
attr_accessor :generator_suggestion
|
8602
|
+
|
8603
|
+
# The name of the generator used to generate this suggestion. Format: `projects//
|
8604
|
+
# locations//generators/`.
|
8605
|
+
# Corresponds to the JSON property `sourceGenerator`
|
8606
|
+
# @return [String]
|
8607
|
+
attr_accessor :source_generator
|
8608
|
+
|
8609
|
+
def initialize(**args)
|
8610
|
+
update!(**args)
|
8611
|
+
end
|
8612
|
+
|
8613
|
+
# Update properties of this object
|
8614
|
+
def update!(**args)
|
8615
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
8616
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
8617
|
+
@source_generator = args[:source_generator] if args.key?(:source_generator)
|
8618
|
+
end
|
8619
|
+
end
|
8620
|
+
|
8621
|
+
# Suggestion generated using a Generator.
|
8622
|
+
class GoogleCloudDialogflowV2GeneratorSuggestion
|
8623
|
+
include Google::Apis::Core::Hashable
|
8624
|
+
|
8625
|
+
# Suggestion generated using free form generator.
|
8626
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
8627
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2FreeFormSuggestion]
|
8628
|
+
attr_accessor :free_form_suggestion
|
8629
|
+
|
8630
|
+
# Suggested summary of the conversation.
|
8631
|
+
# Corresponds to the JSON property `summarySuggestion`
|
8632
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SummarySuggestion]
|
8633
|
+
attr_accessor :summary_suggestion
|
8634
|
+
|
8635
|
+
# Optional. List of request and response for tool calls executed.
|
8636
|
+
# Corresponds to the JSON property `toolCallInfo`
|
8637
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo>]
|
8638
|
+
attr_accessor :tool_call_info
|
8639
|
+
|
8640
|
+
def initialize(**args)
|
8641
|
+
update!(**args)
|
8642
|
+
end
|
8643
|
+
|
8644
|
+
# Update properties of this object
|
8645
|
+
def update!(**args)
|
8646
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
8647
|
+
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
8648
|
+
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
8649
|
+
end
|
8650
|
+
end
|
8651
|
+
|
8652
|
+
# Request and response for a tool call.
|
8653
|
+
class GoogleCloudDialogflowV2GeneratorSuggestionToolCallInfo
|
8654
|
+
include Google::Apis::Core::Hashable
|
8655
|
+
|
8656
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
8657
|
+
# Corresponds to the JSON property `toolCall`
|
8658
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ToolCall]
|
8659
|
+
attr_accessor :tool_call
|
8660
|
+
|
8661
|
+
# The result of calling a tool's action.
|
8662
|
+
# Corresponds to the JSON property `toolCallResult`
|
8663
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ToolCallResult]
|
8664
|
+
attr_accessor :tool_call_result
|
8665
|
+
|
8666
|
+
def initialize(**args)
|
8667
|
+
update!(**args)
|
8668
|
+
end
|
8669
|
+
|
8670
|
+
# Update properties of this object
|
8671
|
+
def update!(**args)
|
8672
|
+
@tool_call = args[:tool_call] if args.key?(:tool_call)
|
8673
|
+
@tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
|
8674
|
+
end
|
8675
|
+
end
|
8676
|
+
|
8449
8677
|
# Represents a notification sent to Cloud Pub/Sub subscribers for human agent
|
8450
8678
|
# assistant events in a specific conversation.
|
8451
8679
|
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
@@ -10848,6 +11076,11 @@ module Google
|
|
10848
11076
|
# @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus]
|
10849
11077
|
attr_accessor :error
|
10850
11078
|
|
11079
|
+
# The response message for Conversations.GenerateSuggestions.
|
11080
|
+
# Corresponds to the JSON property `generateSuggestionsResponse`
|
11081
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2GenerateSuggestionsResponse]
|
11082
|
+
attr_accessor :generate_suggestions_response
|
11083
|
+
|
10851
11084
|
# The response message for Participants.SuggestArticles.
|
10852
11085
|
# Corresponds to the JSON property `suggestArticlesResponse`
|
10853
11086
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SuggestArticlesResponse]
|
@@ -10875,6 +11108,7 @@ module Google
|
|
10875
11108
|
# Update properties of this object
|
10876
11109
|
def update!(**args)
|
10877
11110
|
@error = args[:error] if args.key?(:error)
|
11111
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
10878
11112
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
10879
11113
|
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
10880
11114
|
@suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
|
@@ -10882,6 +11116,159 @@ module Google
|
|
10882
11116
|
end
|
10883
11117
|
end
|
10884
11118
|
|
11119
|
+
# Suggested summary of the conversation.
|
11120
|
+
class GoogleCloudDialogflowV2SummarySuggestion
|
11121
|
+
include Google::Apis::Core::Hashable
|
11122
|
+
|
11123
|
+
# Required. All the parts of generated summary.
|
11124
|
+
# Corresponds to the JSON property `summarySections`
|
11125
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SummarySuggestionSummarySection>]
|
11126
|
+
attr_accessor :summary_sections
|
11127
|
+
|
11128
|
+
def initialize(**args)
|
11129
|
+
update!(**args)
|
11130
|
+
end
|
11131
|
+
|
11132
|
+
# Update properties of this object
|
11133
|
+
def update!(**args)
|
11134
|
+
@summary_sections = args[:summary_sections] if args.key?(:summary_sections)
|
11135
|
+
end
|
11136
|
+
end
|
11137
|
+
|
11138
|
+
# A component of the generated summary.
|
11139
|
+
class GoogleCloudDialogflowV2SummarySuggestionSummarySection
|
11140
|
+
include Google::Apis::Core::Hashable
|
11141
|
+
|
11142
|
+
# Required. Name of the section.
|
11143
|
+
# Corresponds to the JSON property `section`
|
11144
|
+
# @return [String]
|
11145
|
+
attr_accessor :section
|
11146
|
+
|
11147
|
+
# Required. Summary text for the section.
|
11148
|
+
# Corresponds to the JSON property `summary`
|
11149
|
+
# @return [String]
|
11150
|
+
attr_accessor :summary
|
11151
|
+
|
11152
|
+
def initialize(**args)
|
11153
|
+
update!(**args)
|
11154
|
+
end
|
11155
|
+
|
11156
|
+
# Update properties of this object
|
11157
|
+
def update!(**args)
|
11158
|
+
@section = args[:section] if args.key?(:section)
|
11159
|
+
@summary = args[:summary] if args.key?(:summary)
|
11160
|
+
end
|
11161
|
+
end
|
11162
|
+
|
11163
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
11164
|
+
class GoogleCloudDialogflowV2ToolCall
|
11165
|
+
include Google::Apis::Core::Hashable
|
11166
|
+
|
11167
|
+
# Required. The name of the tool's action associated with this call.
|
11168
|
+
# Corresponds to the JSON property `action`
|
11169
|
+
# @return [String]
|
11170
|
+
attr_accessor :action
|
11171
|
+
|
11172
|
+
# Output only. Create time of the tool call.
|
11173
|
+
# Corresponds to the JSON property `createTime`
|
11174
|
+
# @return [String]
|
11175
|
+
attr_accessor :create_time
|
11176
|
+
|
11177
|
+
# Optional. The action's input parameters.
|
11178
|
+
# Corresponds to the JSON property `inputParameters`
|
11179
|
+
# @return [Hash<String,Object>]
|
11180
|
+
attr_accessor :input_parameters
|
11181
|
+
|
11182
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
11183
|
+
# tools/`.
|
11184
|
+
# Corresponds to the JSON property `tool`
|
11185
|
+
# @return [String]
|
11186
|
+
attr_accessor :tool
|
11187
|
+
|
11188
|
+
def initialize(**args)
|
11189
|
+
update!(**args)
|
11190
|
+
end
|
11191
|
+
|
11192
|
+
# Update properties of this object
|
11193
|
+
def update!(**args)
|
11194
|
+
@action = args[:action] if args.key?(:action)
|
11195
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
11196
|
+
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
11197
|
+
@tool = args[:tool] if args.key?(:tool)
|
11198
|
+
end
|
11199
|
+
end
|
11200
|
+
|
11201
|
+
# The result of calling a tool's action.
|
11202
|
+
class GoogleCloudDialogflowV2ToolCallResult
|
11203
|
+
include Google::Apis::Core::Hashable
|
11204
|
+
|
11205
|
+
# Required. The name of the tool's action associated with this call.
|
11206
|
+
# Corresponds to the JSON property `action`
|
11207
|
+
# @return [String]
|
11208
|
+
attr_accessor :action
|
11209
|
+
|
11210
|
+
# Only populated if the response content is utf-8 encoded.
|
11211
|
+
# Corresponds to the JSON property `content`
|
11212
|
+
# @return [String]
|
11213
|
+
attr_accessor :content
|
11214
|
+
|
11215
|
+
# Output only. Create time of the tool call result.
|
11216
|
+
# Corresponds to the JSON property `createTime`
|
11217
|
+
# @return [String]
|
11218
|
+
attr_accessor :create_time
|
11219
|
+
|
11220
|
+
# An error produced by the tool call.
|
11221
|
+
# Corresponds to the JSON property `error`
|
11222
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2ToolCallResultError]
|
11223
|
+
attr_accessor :error
|
11224
|
+
|
11225
|
+
# Only populated if the response content is not utf-8 encoded. (by definition
|
11226
|
+
# byte fields are base64 encoded).
|
11227
|
+
# Corresponds to the JSON property `rawContent`
|
11228
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
11229
|
+
# @return [String]
|
11230
|
+
attr_accessor :raw_content
|
11231
|
+
|
11232
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
11233
|
+
# tools/`.
|
11234
|
+
# Corresponds to the JSON property `tool`
|
11235
|
+
# @return [String]
|
11236
|
+
attr_accessor :tool
|
11237
|
+
|
11238
|
+
def initialize(**args)
|
11239
|
+
update!(**args)
|
11240
|
+
end
|
11241
|
+
|
11242
|
+
# Update properties of this object
|
11243
|
+
def update!(**args)
|
11244
|
+
@action = args[:action] if args.key?(:action)
|
11245
|
+
@content = args[:content] if args.key?(:content)
|
11246
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
11247
|
+
@error = args[:error] if args.key?(:error)
|
11248
|
+
@raw_content = args[:raw_content] if args.key?(:raw_content)
|
11249
|
+
@tool = args[:tool] if args.key?(:tool)
|
11250
|
+
end
|
11251
|
+
end
|
11252
|
+
|
11253
|
+
# An error produced by the tool call.
|
11254
|
+
class GoogleCloudDialogflowV2ToolCallResultError
|
11255
|
+
include Google::Apis::Core::Hashable
|
11256
|
+
|
11257
|
+
# Optional. The error message of the function.
|
11258
|
+
# Corresponds to the JSON property `message`
|
11259
|
+
# @return [String]
|
11260
|
+
attr_accessor :message
|
11261
|
+
|
11262
|
+
def initialize(**args)
|
11263
|
+
update!(**args)
|
11264
|
+
end
|
11265
|
+
|
11266
|
+
# Update properties of this object
|
11267
|
+
def update!(**args)
|
11268
|
+
@message = args[:message] if args.key?(:message)
|
11269
|
+
end
|
11270
|
+
end
|
11271
|
+
|
10885
11272
|
# Metadata for a ConversationModels.UndeployConversationModel operation.
|
10886
11273
|
class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
|
10887
11274
|
include Google::Apis::Core::Hashable
|
@@ -12508,6 +12895,11 @@ module Google
|
|
12508
12895
|
# @return [String]
|
12509
12896
|
attr_accessor :end_time
|
12510
12897
|
|
12898
|
+
# Output only. The context reference updates provided by external systems.
|
12899
|
+
# Corresponds to the JSON property `ingestedContextReferences`
|
12900
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>]
|
12901
|
+
attr_accessor :ingested_context_references
|
12902
|
+
|
12511
12903
|
# Output only. The current state of the Conversation.
|
12512
12904
|
# Corresponds to the JSON property `lifecycleState`
|
12513
12905
|
# @return [String]
|
@@ -12545,6 +12937,7 @@ module Google
|
|
12545
12937
|
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
12546
12938
|
@conversation_stage = args[:conversation_stage] if args.key?(:conversation_stage)
|
12547
12939
|
@end_time = args[:end_time] if args.key?(:end_time)
|
12940
|
+
@ingested_context_references = args[:ingested_context_references] if args.key?(:ingested_context_references)
|
12548
12941
|
@lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
|
12549
12942
|
@name = args[:name] if args.key?(:name)
|
12550
12943
|
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
@@ -12557,10 +12950,78 @@ module Google
|
|
12557
12950
|
class GoogleCloudDialogflowV2beta1ConversationContext
|
12558
12951
|
include Google::Apis::Core::Hashable
|
12559
12952
|
|
12560
|
-
# Optional. List of message transcripts in the conversation.
|
12561
|
-
# Corresponds to the JSON property `messageEntries`
|
12562
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry>]
|
12563
|
-
attr_accessor :message_entries
|
12953
|
+
# Optional. List of message transcripts in the conversation.
|
12954
|
+
# Corresponds to the JSON property `messageEntries`
|
12955
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1MessageEntry>]
|
12956
|
+
attr_accessor :message_entries
|
12957
|
+
|
12958
|
+
def initialize(**args)
|
12959
|
+
update!(**args)
|
12960
|
+
end
|
12961
|
+
|
12962
|
+
# Update properties of this object
|
12963
|
+
def update!(**args)
|
12964
|
+
@message_entries = args[:message_entries] if args.key?(:message_entries)
|
12965
|
+
end
|
12966
|
+
end
|
12967
|
+
|
12968
|
+
# Represents a piece of ingested context information.
|
12969
|
+
class GoogleCloudDialogflowV2beta1ConversationContextReference
|
12970
|
+
include Google::Apis::Core::Hashable
|
12971
|
+
|
12972
|
+
# Required. The list of content updates for a context reference.
|
12973
|
+
# Corresponds to the JSON property `contextContents`
|
12974
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent>]
|
12975
|
+
attr_accessor :context_contents
|
12976
|
+
|
12977
|
+
# Output only. The time the context reference was first created.
|
12978
|
+
# Corresponds to the JSON property `createTime`
|
12979
|
+
# @return [String]
|
12980
|
+
attr_accessor :create_time
|
12981
|
+
|
12982
|
+
# Optional. The language of the information ingested, defaults to "en-US" if not
|
12983
|
+
# set.
|
12984
|
+
# Corresponds to the JSON property `languageCode`
|
12985
|
+
# @return [String]
|
12986
|
+
attr_accessor :language_code
|
12987
|
+
|
12988
|
+
# Required. The mode in which context reference contents are updated.
|
12989
|
+
# Corresponds to the JSON property `updateMode`
|
12990
|
+
# @return [String]
|
12991
|
+
attr_accessor :update_mode
|
12992
|
+
|
12993
|
+
def initialize(**args)
|
12994
|
+
update!(**args)
|
12995
|
+
end
|
12996
|
+
|
12997
|
+
# Update properties of this object
|
12998
|
+
def update!(**args)
|
12999
|
+
@context_contents = args[:context_contents] if args.key?(:context_contents)
|
13000
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
13001
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
13002
|
+
@update_mode = args[:update_mode] if args.key?(:update_mode)
|
13003
|
+
end
|
13004
|
+
end
|
13005
|
+
|
13006
|
+
# Contents ingested.
|
13007
|
+
class GoogleCloudDialogflowV2beta1ConversationContextReferenceContextContent
|
13008
|
+
include Google::Apis::Core::Hashable
|
13009
|
+
|
13010
|
+
# Required. The information ingested in a single request.
|
13011
|
+
# Corresponds to the JSON property `content`
|
13012
|
+
# @return [String]
|
13013
|
+
attr_accessor :content
|
13014
|
+
|
13015
|
+
# Required. The format of the ingested string.
|
13016
|
+
# Corresponds to the JSON property `contentFormat`
|
13017
|
+
# @return [String]
|
13018
|
+
attr_accessor :content_format
|
13019
|
+
|
13020
|
+
# Output only. The time when this information was incorporated into the relevant
|
13021
|
+
# context reference.
|
13022
|
+
# Corresponds to the JSON property `ingestionTime`
|
13023
|
+
# @return [String]
|
13024
|
+
attr_accessor :ingestion_time
|
12564
13025
|
|
12565
13026
|
def initialize(**args)
|
12566
13027
|
update!(**args)
|
@@ -12568,7 +13029,9 @@ module Google
|
|
12568
13029
|
|
12569
13030
|
# Update properties of this object
|
12570
13031
|
def update!(**args)
|
12571
|
-
@
|
13032
|
+
@content = args[:content] if args.key?(:content)
|
13033
|
+
@content_format = args[:content_format] if args.key?(:content_format)
|
13034
|
+
@ingestion_time = args[:ingestion_time] if args.key?(:ingestion_time)
|
12572
13035
|
end
|
12573
13036
|
end
|
12574
13037
|
|
@@ -13717,6 +14180,44 @@ module Google
|
|
13717
14180
|
end
|
13718
14181
|
end
|
13719
14182
|
|
14183
|
+
# Free form generator context that customer can configure.
|
14184
|
+
class GoogleCloudDialogflowV2beta1FreeFormContext
|
14185
|
+
include Google::Apis::Core::Hashable
|
14186
|
+
|
14187
|
+
# Optional. Free form text input to LLM.
|
14188
|
+
# Corresponds to the JSON property `text`
|
14189
|
+
# @return [String]
|
14190
|
+
attr_accessor :text
|
14191
|
+
|
14192
|
+
def initialize(**args)
|
14193
|
+
update!(**args)
|
14194
|
+
end
|
14195
|
+
|
14196
|
+
# Update properties of this object
|
14197
|
+
def update!(**args)
|
14198
|
+
@text = args[:text] if args.key?(:text)
|
14199
|
+
end
|
14200
|
+
end
|
14201
|
+
|
14202
|
+
# Suggestion generated using free form generator.
|
14203
|
+
class GoogleCloudDialogflowV2beta1FreeFormSuggestion
|
14204
|
+
include Google::Apis::Core::Hashable
|
14205
|
+
|
14206
|
+
# Required. Free form suggestion.
|
14207
|
+
# Corresponds to the JSON property `response`
|
14208
|
+
# @return [String]
|
14209
|
+
attr_accessor :response
|
14210
|
+
|
14211
|
+
def initialize(**args)
|
14212
|
+
update!(**args)
|
14213
|
+
end
|
14214
|
+
|
14215
|
+
# Update properties of this object
|
14216
|
+
def update!(**args)
|
14217
|
+
@response = args[:response] if args.key?(:response)
|
14218
|
+
end
|
14219
|
+
end
|
14220
|
+
|
13720
14221
|
# By default, your agent responds to a matched intent with a static response. As
|
13721
14222
|
# an alternative, you can provide a more dynamic response by using fulfillment.
|
13722
14223
|
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
@@ -13912,6 +14413,14 @@ module Google
|
|
13912
14413
|
class GoogleCloudDialogflowV2beta1GenerateStatelessSuggestionRequest
|
13913
14414
|
include Google::Apis::Core::Hashable
|
13914
14415
|
|
14416
|
+
# Optional. A section of ingested context information. The key is the name of
|
14417
|
+
# the context reference and the value contains the contents of the context
|
14418
|
+
# reference. The key is used to incorporate ingested context references to
|
14419
|
+
# enhance the generator.
|
14420
|
+
# Corresponds to the JSON property `contextReferences`
|
14421
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>]
|
14422
|
+
attr_accessor :context_references
|
14423
|
+
|
13915
14424
|
# Context of the conversation, including transcripts.
|
13916
14425
|
# Corresponds to the JSON property `conversationContext`
|
13917
14426
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContext]
|
@@ -13940,6 +14449,7 @@ module Google
|
|
13940
14449
|
|
13941
14450
|
# Update properties of this object
|
13942
14451
|
def update!(**args)
|
14452
|
+
@context_references = args[:context_references] if args.key?(:context_references)
|
13943
14453
|
@conversation_context = args[:conversation_context] if args.key?(:conversation_context)
|
13944
14454
|
@generator = args[:generator] if args.key?(:generator)
|
13945
14455
|
@generator_name = args[:generator_name] if args.key?(:generator_name)
|
@@ -14102,6 +14612,92 @@ module Google
|
|
14102
14612
|
end
|
14103
14613
|
end
|
14104
14614
|
|
14615
|
+
# The request message for Conversations.GenerateSuggestions.
|
14616
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsRequest
|
14617
|
+
include Google::Apis::Core::Hashable
|
14618
|
+
|
14619
|
+
# Optional. The name of the latest conversation message for which the request is
|
14620
|
+
# triggered. Format: `projects//locations//conversations//messages/`.
|
14621
|
+
# Corresponds to the JSON property `latestMessage`
|
14622
|
+
# @return [String]
|
14623
|
+
attr_accessor :latest_message
|
14624
|
+
|
14625
|
+
# Optional. A list of trigger events. Only generators configured in the
|
14626
|
+
# conversation_profile whose trigger_event is listed here will be triggered.
|
14627
|
+
# Corresponds to the JSON property `triggerEvents`
|
14628
|
+
# @return [Array<String>]
|
14629
|
+
attr_accessor :trigger_events
|
14630
|
+
|
14631
|
+
def initialize(**args)
|
14632
|
+
update!(**args)
|
14633
|
+
end
|
14634
|
+
|
14635
|
+
# Update properties of this object
|
14636
|
+
def update!(**args)
|
14637
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
14638
|
+
@trigger_events = args[:trigger_events] if args.key?(:trigger_events)
|
14639
|
+
end
|
14640
|
+
end
|
14641
|
+
|
14642
|
+
# The response message for Conversations.GenerateSuggestions.
|
14643
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse
|
14644
|
+
include Google::Apis::Core::Hashable
|
14645
|
+
|
14646
|
+
# The answers generated for the conversation based on context.
|
14647
|
+
# Corresponds to the JSON property `generatorSuggestionAnswers`
|
14648
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer>]
|
14649
|
+
attr_accessor :generator_suggestion_answers
|
14650
|
+
|
14651
|
+
# The name of the latest conversation message used as context for compiling
|
14652
|
+
# suggestion. Format: `projects//locations//conversations//messages/`.
|
14653
|
+
# Corresponds to the JSON property `latestMessage`
|
14654
|
+
# @return [String]
|
14655
|
+
attr_accessor :latest_message
|
14656
|
+
|
14657
|
+
def initialize(**args)
|
14658
|
+
update!(**args)
|
14659
|
+
end
|
14660
|
+
|
14661
|
+
# Update properties of this object
|
14662
|
+
def update!(**args)
|
14663
|
+
@generator_suggestion_answers = args[:generator_suggestion_answers] if args.key?(:generator_suggestion_answers)
|
14664
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
14665
|
+
end
|
14666
|
+
end
|
14667
|
+
|
14668
|
+
# A GeneratorSuggestion answer.
|
14669
|
+
class GoogleCloudDialogflowV2beta1GenerateSuggestionsResponseGeneratorSuggestionAnswer
|
14670
|
+
include Google::Apis::Core::Hashable
|
14671
|
+
|
14672
|
+
# Answer record that uniquely identifies the suggestion. This can be used to
|
14673
|
+
# provide suggestion feedback.
|
14674
|
+
# Corresponds to the JSON property `answerRecord`
|
14675
|
+
# @return [String]
|
14676
|
+
attr_accessor :answer_record
|
14677
|
+
|
14678
|
+
# Suggestion generated using a Generator.
|
14679
|
+
# Corresponds to the JSON property `generatorSuggestion`
|
14680
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestion]
|
14681
|
+
attr_accessor :generator_suggestion
|
14682
|
+
|
14683
|
+
# The name of the generator used to generate this suggestion. Format: `projects//
|
14684
|
+
# locations//generators/`.
|
14685
|
+
# Corresponds to the JSON property `sourceGenerator`
|
14686
|
+
# @return [String]
|
14687
|
+
attr_accessor :source_generator
|
14688
|
+
|
14689
|
+
def initialize(**args)
|
14690
|
+
update!(**args)
|
14691
|
+
end
|
14692
|
+
|
14693
|
+
# Update properties of this object
|
14694
|
+
def update!(**args)
|
14695
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
14696
|
+
@generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
|
14697
|
+
@source_generator = args[:source_generator] if args.key?(:source_generator)
|
14698
|
+
end
|
14699
|
+
end
|
14700
|
+
|
14105
14701
|
# LLM generator.
|
14106
14702
|
class GoogleCloudDialogflowV2beta1Generator
|
14107
14703
|
include Google::Apis::Core::Hashable
|
@@ -14116,6 +14712,11 @@ module Google
|
|
14116
14712
|
# @return [String]
|
14117
14713
|
attr_accessor :description
|
14118
14714
|
|
14715
|
+
# Free form generator context that customer can configure.
|
14716
|
+
# Corresponds to the JSON property `freeFormContext`
|
14717
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormContext]
|
14718
|
+
attr_accessor :free_form_context
|
14719
|
+
|
14119
14720
|
# The parameters of inference.
|
14120
14721
|
# Corresponds to the JSON property `inferenceParameter`
|
14121
14722
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InferenceParameter]
|
@@ -14127,11 +14728,25 @@ module Google
|
|
14127
14728
|
# @return [String]
|
14128
14729
|
attr_accessor :name
|
14129
14730
|
|
14731
|
+
# Optional. The published Large Language Model name. * To use the latest model
|
14732
|
+
# version, specify the model name without version number. Example: `text-bison` *
|
14733
|
+
# To use a stable model version, specify the version number as well. Example: `
|
14734
|
+
# text-bison@002`.
|
14735
|
+
# Corresponds to the JSON property `publishedModel`
|
14736
|
+
# @return [String]
|
14737
|
+
attr_accessor :published_model
|
14738
|
+
|
14130
14739
|
# Summarization context that customer can configure.
|
14131
14740
|
# Corresponds to the JSON property `summarizationContext`
|
14132
14741
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarizationContext]
|
14133
14742
|
attr_accessor :summarization_context
|
14134
14743
|
|
14744
|
+
# Optional. Resource names of the tools that the generator can choose from.
|
14745
|
+
# Format: `projects//locations//tools/`.
|
14746
|
+
# Corresponds to the JSON property `tools`
|
14747
|
+
# @return [Array<String>]
|
14748
|
+
attr_accessor :tools
|
14749
|
+
|
14135
14750
|
# Optional. The trigger event of the generator. It defines when the generator is
|
14136
14751
|
# triggered in a conversation.
|
14137
14752
|
# Corresponds to the JSON property `triggerEvent`
|
@@ -14151,9 +14766,12 @@ module Google
|
|
14151
14766
|
def update!(**args)
|
14152
14767
|
@create_time = args[:create_time] if args.key?(:create_time)
|
14153
14768
|
@description = args[:description] if args.key?(:description)
|
14769
|
+
@free_form_context = args[:free_form_context] if args.key?(:free_form_context)
|
14154
14770
|
@inference_parameter = args[:inference_parameter] if args.key?(:inference_parameter)
|
14155
14771
|
@name = args[:name] if args.key?(:name)
|
14772
|
+
@published_model = args[:published_model] if args.key?(:published_model)
|
14156
14773
|
@summarization_context = args[:summarization_context] if args.key?(:summarization_context)
|
14774
|
+
@tools = args[:tools] if args.key?(:tools)
|
14157
14775
|
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
14158
14776
|
@update_time = args[:update_time] if args.key?(:update_time)
|
14159
14777
|
end
|
@@ -14163,18 +14781,55 @@ module Google
|
|
14163
14781
|
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
14164
14782
|
include Google::Apis::Core::Hashable
|
14165
14783
|
|
14784
|
+
# Suggestion generated using free form generator.
|
14785
|
+
# Corresponds to the JSON property `freeFormSuggestion`
|
14786
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
|
14787
|
+
attr_accessor :free_form_suggestion
|
14788
|
+
|
14166
14789
|
# Suggested summary of the conversation.
|
14167
14790
|
# Corresponds to the JSON property `summarySuggestion`
|
14168
14791
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SummarySuggestion]
|
14169
14792
|
attr_accessor :summary_suggestion
|
14170
14793
|
|
14794
|
+
# Optional. List of request and response for tool calls executed.
|
14795
|
+
# Corresponds to the JSON property `toolCallInfo`
|
14796
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo>]
|
14797
|
+
attr_accessor :tool_call_info
|
14798
|
+
|
14171
14799
|
def initialize(**args)
|
14172
14800
|
update!(**args)
|
14173
14801
|
end
|
14174
14802
|
|
14175
14803
|
# Update properties of this object
|
14176
14804
|
def update!(**args)
|
14805
|
+
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
14177
14806
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
14807
|
+
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
14808
|
+
end
|
14809
|
+
end
|
14810
|
+
|
14811
|
+
# Request and response for a tool call.
|
14812
|
+
class GoogleCloudDialogflowV2beta1GeneratorSuggestionToolCallInfo
|
14813
|
+
include Google::Apis::Core::Hashable
|
14814
|
+
|
14815
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
14816
|
+
# Corresponds to the JSON property `toolCall`
|
14817
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolCall]
|
14818
|
+
attr_accessor :tool_call
|
14819
|
+
|
14820
|
+
# The result of calling a tool's action.
|
14821
|
+
# Corresponds to the JSON property `toolCallResult`
|
14822
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolCallResult]
|
14823
|
+
attr_accessor :tool_call_result
|
14824
|
+
|
14825
|
+
def initialize(**args)
|
14826
|
+
update!(**args)
|
14827
|
+
end
|
14828
|
+
|
14829
|
+
# Update properties of this object
|
14830
|
+
def update!(**args)
|
14831
|
+
@tool_call = args[:tool_call] if args.key?(:tool_call)
|
14832
|
+
@tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
|
14178
14833
|
end
|
14179
14834
|
end
|
14180
14835
|
|
@@ -14994,6 +15649,47 @@ module Google
|
|
14994
15649
|
end
|
14995
15650
|
end
|
14996
15651
|
|
15652
|
+
# The request message for ConversationsService.IngestContextReferences.
|
15653
|
+
class GoogleCloudDialogflowV2beta1IngestContextReferencesRequest
|
15654
|
+
include Google::Apis::Core::Hashable
|
15655
|
+
|
15656
|
+
# Required. The context references to ingest. The key is the name of the context
|
15657
|
+
# reference and the value contains the contents of the context reference. The
|
15658
|
+
# key is used to incorporate ingested context references to enhance the
|
15659
|
+
# generator.
|
15660
|
+
# Corresponds to the JSON property `contextReferences`
|
15661
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>]
|
15662
|
+
attr_accessor :context_references
|
15663
|
+
|
15664
|
+
def initialize(**args)
|
15665
|
+
update!(**args)
|
15666
|
+
end
|
15667
|
+
|
15668
|
+
# Update properties of this object
|
15669
|
+
def update!(**args)
|
15670
|
+
@context_references = args[:context_references] if args.key?(:context_references)
|
15671
|
+
end
|
15672
|
+
end
|
15673
|
+
|
15674
|
+
# The response message for ConversationsService.IngestContextReferences.
|
15675
|
+
class GoogleCloudDialogflowV2beta1IngestContextReferencesResponse
|
15676
|
+
include Google::Apis::Core::Hashable
|
15677
|
+
|
15678
|
+
# All context references ingested.
|
15679
|
+
# Corresponds to the JSON property `ingestedContextReferences`
|
15680
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationContextReference>]
|
15681
|
+
attr_accessor :ingested_context_references
|
15682
|
+
|
15683
|
+
def initialize(**args)
|
15684
|
+
update!(**args)
|
15685
|
+
end
|
15686
|
+
|
15687
|
+
# Update properties of this object
|
15688
|
+
def update!(**args)
|
15689
|
+
@ingested_context_references = args[:ingested_context_references] if args.key?(:ingested_context_references)
|
15690
|
+
end
|
15691
|
+
end
|
15692
|
+
|
14997
15693
|
# Metadata for initializing a location-level encryption specification.
|
14998
15694
|
class GoogleCloudDialogflowV2beta1InitializeEncryptionSpecMetadata
|
14999
15695
|
include Google::Apis::Core::Hashable
|
@@ -20423,6 +21119,11 @@ module Google
|
|
20423
21119
|
# @return [Google::Apis::DialogflowV2beta1::GoogleRpcStatus]
|
20424
21120
|
attr_accessor :error
|
20425
21121
|
|
21122
|
+
# The response message for Conversations.GenerateSuggestions.
|
21123
|
+
# Corresponds to the JSON property `generateSuggestionsResponse`
|
21124
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse]
|
21125
|
+
attr_accessor :generate_suggestions_response
|
21126
|
+
|
20426
21127
|
# The response message for Participants.SuggestArticles.
|
20427
21128
|
# Corresponds to the JSON property `suggestArticlesResponse`
|
20428
21129
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
|
@@ -20460,6 +21161,7 @@ module Google
|
|
20460
21161
|
# Update properties of this object
|
20461
21162
|
def update!(**args)
|
20462
21163
|
@error = args[:error] if args.key?(:error)
|
21164
|
+
@generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
|
20463
21165
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
20464
21166
|
@suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
|
20465
21167
|
@suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_response)
|
@@ -20755,6 +21457,115 @@ module Google
|
|
20755
21457
|
end
|
20756
21458
|
end
|
20757
21459
|
|
21460
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
21461
|
+
class GoogleCloudDialogflowV2beta1ToolCall
|
21462
|
+
include Google::Apis::Core::Hashable
|
21463
|
+
|
21464
|
+
# Required. The name of the tool's action associated with this call.
|
21465
|
+
# Corresponds to the JSON property `action`
|
21466
|
+
# @return [String]
|
21467
|
+
attr_accessor :action
|
21468
|
+
|
21469
|
+
# Output only. Create time of the tool call.
|
21470
|
+
# Corresponds to the JSON property `createTime`
|
21471
|
+
# @return [String]
|
21472
|
+
attr_accessor :create_time
|
21473
|
+
|
21474
|
+
# Optional. The action's input parameters.
|
21475
|
+
# Corresponds to the JSON property `inputParameters`
|
21476
|
+
# @return [Hash<String,Object>]
|
21477
|
+
attr_accessor :input_parameters
|
21478
|
+
|
21479
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
21480
|
+
# tools/`.
|
21481
|
+
# Corresponds to the JSON property `tool`
|
21482
|
+
# @return [String]
|
21483
|
+
attr_accessor :tool
|
21484
|
+
|
21485
|
+
def initialize(**args)
|
21486
|
+
update!(**args)
|
21487
|
+
end
|
21488
|
+
|
21489
|
+
# Update properties of this object
|
21490
|
+
def update!(**args)
|
21491
|
+
@action = args[:action] if args.key?(:action)
|
21492
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
21493
|
+
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
21494
|
+
@tool = args[:tool] if args.key?(:tool)
|
21495
|
+
end
|
21496
|
+
end
|
21497
|
+
|
21498
|
+
# The result of calling a tool's action.
|
21499
|
+
class GoogleCloudDialogflowV2beta1ToolCallResult
|
21500
|
+
include Google::Apis::Core::Hashable
|
21501
|
+
|
21502
|
+
# Required. The name of the tool's action associated with this call.
|
21503
|
+
# Corresponds to the JSON property `action`
|
21504
|
+
# @return [String]
|
21505
|
+
attr_accessor :action
|
21506
|
+
|
21507
|
+
# Only populated if the response content is utf-8 encoded.
|
21508
|
+
# Corresponds to the JSON property `content`
|
21509
|
+
# @return [String]
|
21510
|
+
attr_accessor :content
|
21511
|
+
|
21512
|
+
# Output only. Create time of the tool call result.
|
21513
|
+
# Corresponds to the JSON property `createTime`
|
21514
|
+
# @return [String]
|
21515
|
+
attr_accessor :create_time
|
21516
|
+
|
21517
|
+
# An error produced by the tool call.
|
21518
|
+
# Corresponds to the JSON property `error`
|
21519
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ToolCallResultError]
|
21520
|
+
attr_accessor :error
|
21521
|
+
|
21522
|
+
# Only populated if the response content is not utf-8 encoded. (by definition
|
21523
|
+
# byte fields are base64 encoded).
|
21524
|
+
# Corresponds to the JSON property `rawContent`
|
21525
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
21526
|
+
# @return [String]
|
21527
|
+
attr_accessor :raw_content
|
21528
|
+
|
21529
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
21530
|
+
# tools/`.
|
21531
|
+
# Corresponds to the JSON property `tool`
|
21532
|
+
# @return [String]
|
21533
|
+
attr_accessor :tool
|
21534
|
+
|
21535
|
+
def initialize(**args)
|
21536
|
+
update!(**args)
|
21537
|
+
end
|
21538
|
+
|
21539
|
+
# Update properties of this object
|
21540
|
+
def update!(**args)
|
21541
|
+
@action = args[:action] if args.key?(:action)
|
21542
|
+
@content = args[:content] if args.key?(:content)
|
21543
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
21544
|
+
@error = args[:error] if args.key?(:error)
|
21545
|
+
@raw_content = args[:raw_content] if args.key?(:raw_content)
|
21546
|
+
@tool = args[:tool] if args.key?(:tool)
|
21547
|
+
end
|
21548
|
+
end
|
21549
|
+
|
21550
|
+
# An error produced by the tool call.
|
21551
|
+
class GoogleCloudDialogflowV2beta1ToolCallResultError
|
21552
|
+
include Google::Apis::Core::Hashable
|
21553
|
+
|
21554
|
+
# Optional. The error message of the function.
|
21555
|
+
# Corresponds to the JSON property `message`
|
21556
|
+
# @return [String]
|
21557
|
+
attr_accessor :message
|
21558
|
+
|
21559
|
+
def initialize(**args)
|
21560
|
+
update!(**args)
|
21561
|
+
end
|
21562
|
+
|
21563
|
+
# Update properties of this object
|
21564
|
+
def update!(**args)
|
21565
|
+
@message = args[:message] if args.key?(:message)
|
21566
|
+
end
|
21567
|
+
end
|
21568
|
+
|
20758
21569
|
# The request message for Agents.TrainAgent.
|
20759
21570
|
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
20760
21571
|
include Google::Apis::Core::Hashable
|