google-apis-dialogflow_v3 0.115.0 → 0.117.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.
|
@@ -1154,6 +1154,25 @@ module Google
|
|
|
1154
1154
|
end
|
|
1155
1155
|
end
|
|
1156
1156
|
|
|
1157
|
+
# Represents a code block.
|
|
1158
|
+
class GoogleCloudDialogflowCxV3CodeBlock
|
|
1159
|
+
include Google::Apis::Core::Hashable
|
|
1160
|
+
|
|
1161
|
+
# Optional. Source code of the block in Python.
|
|
1162
|
+
# Corresponds to the JSON property `code`
|
|
1163
|
+
# @return [String]
|
|
1164
|
+
attr_accessor :code
|
|
1165
|
+
|
|
1166
|
+
def initialize(**args)
|
|
1167
|
+
update!(**args)
|
|
1168
|
+
end
|
|
1169
|
+
|
|
1170
|
+
# Update properties of this object
|
|
1171
|
+
def update!(**args)
|
|
1172
|
+
@code = args[:code] if args.key?(:code)
|
|
1173
|
+
end
|
|
1174
|
+
end
|
|
1175
|
+
|
|
1157
1176
|
# The request message for Versions.CompareVersions.
|
|
1158
1177
|
class GoogleCloudDialogflowCxV3CompareVersionsRequest
|
|
1159
1178
|
include Google::Apis::Core::Hashable
|
|
@@ -6587,6 +6606,11 @@ module Google
|
|
|
6587
6606
|
class GoogleCloudDialogflowCxV3Playbook
|
|
6588
6607
|
include Google::Apis::Core::Hashable
|
|
6589
6608
|
|
|
6609
|
+
# Represents a code block.
|
|
6610
|
+
# Corresponds to the JSON property `codeBlock`
|
|
6611
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3CodeBlock]
|
|
6612
|
+
attr_accessor :code_block
|
|
6613
|
+
|
|
6590
6614
|
# Output only. The timestamp of initial playbook creation.
|
|
6591
6615
|
# Corresponds to the JSON property `createTime`
|
|
6592
6616
|
# @return [String]
|
|
@@ -6610,6 +6634,14 @@ module Google
|
|
|
6610
6634
|
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Handler>]
|
|
6611
6635
|
attr_accessor :handlers
|
|
6612
6636
|
|
|
6637
|
+
# Optional. Output only. Names of inline actions scoped to this playbook. These
|
|
6638
|
+
# actions are in addition to those belonging to referenced tools, child
|
|
6639
|
+
# playbooks, and flows, e.g. actions that are defined in the playbook's code
|
|
6640
|
+
# block.
|
|
6641
|
+
# Corresponds to the JSON property `inlineActions`
|
|
6642
|
+
# @return [Array<String>]
|
|
6643
|
+
attr_accessor :inline_actions
|
|
6644
|
+
|
|
6613
6645
|
# Optional. Defined structured input parameters for this playbook.
|
|
6614
6646
|
# Corresponds to the JSON property `inputParameterDefinitions`
|
|
6615
6647
|
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ParameterDefinition>]
|
|
@@ -6677,10 +6709,12 @@ module Google
|
|
|
6677
6709
|
|
|
6678
6710
|
# Update properties of this object
|
|
6679
6711
|
def update!(**args)
|
|
6712
|
+
@code_block = args[:code_block] if args.key?(:code_block)
|
|
6680
6713
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
6681
6714
|
@display_name = args[:display_name] if args.key?(:display_name)
|
|
6682
6715
|
@goal = args[:goal] if args.key?(:goal)
|
|
6683
6716
|
@handlers = args[:handlers] if args.key?(:handlers)
|
|
6717
|
+
@inline_actions = args[:inline_actions] if args.key?(:inline_actions)
|
|
6684
6718
|
@input_parameter_definitions = args[:input_parameter_definitions] if args.key?(:input_parameter_definitions)
|
|
6685
6719
|
@instruction = args[:instruction] if args.key?(:instruction)
|
|
6686
6720
|
@llm_model_settings = args[:llm_model_settings] if args.key?(:llm_model_settings)
|
|
@@ -9020,6 +9054,11 @@ module Google
|
|
|
9020
9054
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolAuthenticationOAuthConfig]
|
|
9021
9055
|
attr_accessor :oauth_config
|
|
9022
9056
|
|
|
9057
|
+
# Configuration for authentication using a service account.
|
|
9058
|
+
# Corresponds to the JSON property `serviceAccountAuthConfig`
|
|
9059
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ToolAuthenticationServiceAccountAuthConfig]
|
|
9060
|
+
attr_accessor :service_account_auth_config
|
|
9061
|
+
|
|
9023
9062
|
# Config for auth using [Diglogflow service agent](https://cloud.google.com/iam/
|
|
9024
9063
|
# docs/service-agents#dialogflow-service-agent).
|
|
9025
9064
|
# Corresponds to the JSON property `serviceAgentAuthConfig`
|
|
@@ -9035,6 +9074,7 @@ module Google
|
|
|
9035
9074
|
@api_key_config = args[:api_key_config] if args.key?(:api_key_config)
|
|
9036
9075
|
@bearer_token_config = args[:bearer_token_config] if args.key?(:bearer_token_config)
|
|
9037
9076
|
@oauth_config = args[:oauth_config] if args.key?(:oauth_config)
|
|
9077
|
+
@service_account_auth_config = args[:service_account_auth_config] if args.key?(:service_account_auth_config)
|
|
9038
9078
|
@service_agent_auth_config = args[:service_agent_auth_config] if args.key?(:service_agent_auth_config)
|
|
9039
9079
|
end
|
|
9040
9080
|
end
|
|
@@ -9164,6 +9204,30 @@ module Google
|
|
|
9164
9204
|
end
|
|
9165
9205
|
end
|
|
9166
9206
|
|
|
9207
|
+
# Configuration for authentication using a service account.
|
|
9208
|
+
class GoogleCloudDialogflowCxV3ToolAuthenticationServiceAccountAuthConfig
|
|
9209
|
+
include Google::Apis::Core::Hashable
|
|
9210
|
+
|
|
9211
|
+
# Required. The email address of the service account used to authenticate the
|
|
9212
|
+
# tool call. Dialogflow uses this service account to exchange an access token
|
|
9213
|
+
# and the access token is then sent in the `Authorization` header of the tool
|
|
9214
|
+
# request. The service account must have the `roles/iam.
|
|
9215
|
+
# serviceAccountTokenCreator` role granted to the [Dialogflow service agent](
|
|
9216
|
+
# https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
|
|
9217
|
+
# Corresponds to the JSON property `serviceAccount`
|
|
9218
|
+
# @return [String]
|
|
9219
|
+
attr_accessor :service_account
|
|
9220
|
+
|
|
9221
|
+
def initialize(**args)
|
|
9222
|
+
update!(**args)
|
|
9223
|
+
end
|
|
9224
|
+
|
|
9225
|
+
# Update properties of this object
|
|
9226
|
+
def update!(**args)
|
|
9227
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
|
9228
|
+
end
|
|
9229
|
+
end
|
|
9230
|
+
|
|
9167
9231
|
# Config for auth using [Diglogflow service agent](https://cloud.google.com/iam/
|
|
9168
9232
|
# docs/service-agents#dialogflow-service-agent).
|
|
9169
9233
|
class GoogleCloudDialogflowCxV3ToolAuthenticationServiceAgentAuthConfig
|
|
@@ -10425,6 +10489,11 @@ module Google
|
|
|
10425
10489
|
# @return [Hash<String,Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebServiceSecretVersionHeaderValue>]
|
|
10426
10490
|
attr_accessor :secret_versions_for_request_headers
|
|
10427
10491
|
|
|
10492
|
+
# Configuration for authentication using a service account.
|
|
10493
|
+
# Corresponds to the JSON property `serviceAccountAuthConfig`
|
|
10494
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig]
|
|
10495
|
+
attr_accessor :service_account_auth_config
|
|
10496
|
+
|
|
10428
10497
|
# Optional. Indicate the auth token type generated from the [Diglogflow service
|
|
10429
10498
|
# agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
|
|
10430
10499
|
# agent). The generated token is sent in the Authorization header.
|
|
@@ -10463,6 +10532,7 @@ module Google
|
|
|
10463
10532
|
@request_headers = args[:request_headers] if args.key?(:request_headers)
|
|
10464
10533
|
@secret_version_for_username_password = args[:secret_version_for_username_password] if args.key?(:secret_version_for_username_password)
|
|
10465
10534
|
@secret_versions_for_request_headers = args[:secret_versions_for_request_headers] if args.key?(:secret_versions_for_request_headers)
|
|
10535
|
+
@service_account_auth_config = args[:service_account_auth_config] if args.key?(:service_account_auth_config)
|
|
10466
10536
|
@service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
|
|
10467
10537
|
@uri = args[:uri] if args.key?(:uri)
|
|
10468
10538
|
@username = args[:username] if args.key?(:username)
|
|
@@ -10538,6 +10608,30 @@ module Google
|
|
|
10538
10608
|
end
|
|
10539
10609
|
end
|
|
10540
10610
|
|
|
10611
|
+
# Configuration for authentication using a service account.
|
|
10612
|
+
class GoogleCloudDialogflowCxV3WebhookGenericWebServiceServiceAccountAuthConfig
|
|
10613
|
+
include Google::Apis::Core::Hashable
|
|
10614
|
+
|
|
10615
|
+
# Required. The email address of the service account used to authenticate the
|
|
10616
|
+
# webhook call. Dialogflow uses this service account to exchange an access token
|
|
10617
|
+
# and the access token is then sent in the `Authorization` header of the webhook
|
|
10618
|
+
# request. The service account must have the `roles/iam.
|
|
10619
|
+
# serviceAccountTokenCreator` role granted to the [Dialogflow service agent](
|
|
10620
|
+
# https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
|
|
10621
|
+
# Corresponds to the JSON property `serviceAccount`
|
|
10622
|
+
# @return [String]
|
|
10623
|
+
attr_accessor :service_account
|
|
10624
|
+
|
|
10625
|
+
def initialize(**args)
|
|
10626
|
+
update!(**args)
|
|
10627
|
+
end
|
|
10628
|
+
|
|
10629
|
+
# Update properties of this object
|
|
10630
|
+
def update!(**args)
|
|
10631
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
|
10632
|
+
end
|
|
10633
|
+
end
|
|
10634
|
+
|
|
10541
10635
|
# The request message for a webhook call. The request is sent as a JSON object
|
|
10542
10636
|
# and the field names will be presented in camel cases. You may see undocumented
|
|
10543
10637
|
# fields in an actual request. These fields are used internally by Dialogflow
|
|
@@ -14350,6 +14444,11 @@ module Google
|
|
|
14350
14444
|
# @return [Hash<String,Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceSecretVersionHeaderValue>]
|
|
14351
14445
|
attr_accessor :secret_versions_for_request_headers
|
|
14352
14446
|
|
|
14447
|
+
# Configuration for authentication using a service account.
|
|
14448
|
+
# Corresponds to the JSON property `serviceAccountAuthConfig`
|
|
14449
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig]
|
|
14450
|
+
attr_accessor :service_account_auth_config
|
|
14451
|
+
|
|
14353
14452
|
# Optional. Indicate the auth token type generated from the [Diglogflow service
|
|
14354
14453
|
# agent](https://cloud.google.com/iam/docs/service-agents#dialogflow-service-
|
|
14355
14454
|
# agent). The generated token is sent in the Authorization header.
|
|
@@ -14388,6 +14487,7 @@ module Google
|
|
|
14388
14487
|
@request_headers = args[:request_headers] if args.key?(:request_headers)
|
|
14389
14488
|
@secret_version_for_username_password = args[:secret_version_for_username_password] if args.key?(:secret_version_for_username_password)
|
|
14390
14489
|
@secret_versions_for_request_headers = args[:secret_versions_for_request_headers] if args.key?(:secret_versions_for_request_headers)
|
|
14490
|
+
@service_account_auth_config = args[:service_account_auth_config] if args.key?(:service_account_auth_config)
|
|
14391
14491
|
@service_agent_auth = args[:service_agent_auth] if args.key?(:service_agent_auth)
|
|
14392
14492
|
@uri = args[:uri] if args.key?(:uri)
|
|
14393
14493
|
@username = args[:username] if args.key?(:username)
|
|
@@ -14463,6 +14563,30 @@ module Google
|
|
|
14463
14563
|
end
|
|
14464
14564
|
end
|
|
14465
14565
|
|
|
14566
|
+
# Configuration for authentication using a service account.
|
|
14567
|
+
class GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceServiceAccountAuthConfig
|
|
14568
|
+
include Google::Apis::Core::Hashable
|
|
14569
|
+
|
|
14570
|
+
# Required. The email address of the service account used to authenticate the
|
|
14571
|
+
# webhook call. Dialogflow uses this service account to exchange an access token
|
|
14572
|
+
# and the access token is then sent in the `Authorization` header of the webhook
|
|
14573
|
+
# request. The service account must have the `roles/iam.
|
|
14574
|
+
# serviceAccountTokenCreator` role granted to the [Dialogflow service agent](
|
|
14575
|
+
# https://cloud.google.com/iam/docs/service-agents#dialogflow-service-agent).
|
|
14576
|
+
# Corresponds to the JSON property `serviceAccount`
|
|
14577
|
+
# @return [String]
|
|
14578
|
+
attr_accessor :service_account
|
|
14579
|
+
|
|
14580
|
+
def initialize(**args)
|
|
14581
|
+
update!(**args)
|
|
14582
|
+
end
|
|
14583
|
+
|
|
14584
|
+
# Update properties of this object
|
|
14585
|
+
def update!(**args)
|
|
14586
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
|
14587
|
+
end
|
|
14588
|
+
end
|
|
14589
|
+
|
|
14466
14590
|
# The request message for a webhook call. The request is sent as a JSON object
|
|
14467
14591
|
# and the field names will be presented in camel cases. You may see undocumented
|
|
14468
14592
|
# fields in an actual request. These fields are used internally by Dialogflow
|
|
@@ -14796,6 +14920,282 @@ module Google
|
|
|
14796
14920
|
end
|
|
14797
14921
|
end
|
|
14798
14922
|
|
|
14923
|
+
# Agent Coaching instructions that customer can configure.
|
|
14924
|
+
class GoogleCloudDialogflowV2AgentCoachingInstruction
|
|
14925
|
+
include Google::Apis::Core::Hashable
|
|
14926
|
+
|
|
14927
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
|
14928
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
|
14929
|
+
# detection, agent_action can be empty
|
|
14930
|
+
# Corresponds to the JSON property `agentAction`
|
|
14931
|
+
# @return [String]
|
|
14932
|
+
attr_accessor :agent_action
|
|
14933
|
+
|
|
14934
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
|
14935
|
+
# to cancel an order". If the users want the instruction to be triggered
|
|
14936
|
+
# unconditionally, the condition can be empty.
|
|
14937
|
+
# Corresponds to the JSON property `condition`
|
|
14938
|
+
# @return [String]
|
|
14939
|
+
attr_accessor :condition
|
|
14940
|
+
|
|
14941
|
+
# Optional. The detailed description of this instruction.
|
|
14942
|
+
# Corresponds to the JSON property `displayDetails`
|
|
14943
|
+
# @return [String]
|
|
14944
|
+
attr_accessor :display_details
|
|
14945
|
+
|
|
14946
|
+
# Optional. Display name for the instruction.
|
|
14947
|
+
# Corresponds to the JSON property `displayName`
|
|
14948
|
+
# @return [String]
|
|
14949
|
+
attr_accessor :display_name
|
|
14950
|
+
|
|
14951
|
+
# Duplication check for the suggestion.
|
|
14952
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
14953
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult]
|
|
14954
|
+
attr_accessor :duplicate_check_result
|
|
14955
|
+
|
|
14956
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
|
14957
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
|
14958
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
|
14959
|
+
# Corresponds to the JSON property `systemAction`
|
|
14960
|
+
# @return [String]
|
|
14961
|
+
attr_accessor :system_action
|
|
14962
|
+
|
|
14963
|
+
def initialize(**args)
|
|
14964
|
+
update!(**args)
|
|
14965
|
+
end
|
|
14966
|
+
|
|
14967
|
+
# Update properties of this object
|
|
14968
|
+
def update!(**args)
|
|
14969
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
14970
|
+
@condition = args[:condition] if args.key?(:condition)
|
|
14971
|
+
@display_details = args[:display_details] if args.key?(:display_details)
|
|
14972
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
14973
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
14974
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
|
14975
|
+
end
|
|
14976
|
+
end
|
|
14977
|
+
|
|
14978
|
+
# Duplication check for the suggestion.
|
|
14979
|
+
class GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResult
|
|
14980
|
+
include Google::Apis::Core::Hashable
|
|
14981
|
+
|
|
14982
|
+
# Output only. The duplicate suggestions.
|
|
14983
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
14984
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
|
|
14985
|
+
attr_accessor :duplicate_suggestions
|
|
14986
|
+
|
|
14987
|
+
def initialize(**args)
|
|
14988
|
+
update!(**args)
|
|
14989
|
+
end
|
|
14990
|
+
|
|
14991
|
+
# Update properties of this object
|
|
14992
|
+
def update!(**args)
|
|
14993
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
14994
|
+
end
|
|
14995
|
+
end
|
|
14996
|
+
|
|
14997
|
+
# The duplicate suggestion details.
|
|
14998
|
+
class GoogleCloudDialogflowV2AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
|
|
14999
|
+
include Google::Apis::Core::Hashable
|
|
15000
|
+
|
|
15001
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
15002
|
+
# Corresponds to the JSON property `answerRecord`
|
|
15003
|
+
# @return [String]
|
|
15004
|
+
attr_accessor :answer_record
|
|
15005
|
+
|
|
15006
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
15007
|
+
# Corresponds to the JSON property `similarityScore`
|
|
15008
|
+
# @return [Float]
|
|
15009
|
+
attr_accessor :similarity_score
|
|
15010
|
+
|
|
15011
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
15012
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
15013
|
+
# @return [Fixnum]
|
|
15014
|
+
attr_accessor :suggestion_index
|
|
15015
|
+
|
|
15016
|
+
def initialize(**args)
|
|
15017
|
+
update!(**args)
|
|
15018
|
+
end
|
|
15019
|
+
|
|
15020
|
+
# Update properties of this object
|
|
15021
|
+
def update!(**args)
|
|
15022
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
15023
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
15024
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
15025
|
+
end
|
|
15026
|
+
end
|
|
15027
|
+
|
|
15028
|
+
# Suggestion for coaching agents.
|
|
15029
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestion
|
|
15030
|
+
include Google::Apis::Core::Hashable
|
|
15031
|
+
|
|
15032
|
+
# Optional. Suggested actions for the agent to take.
|
|
15033
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
|
15034
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion>]
|
|
15035
|
+
attr_accessor :agent_action_suggestions
|
|
15036
|
+
|
|
15037
|
+
# Optional. Instructions applicable based on the current context.
|
|
15038
|
+
# Corresponds to the JSON property `applicableInstructions`
|
|
15039
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingInstruction>]
|
|
15040
|
+
attr_accessor :applicable_instructions
|
|
15041
|
+
|
|
15042
|
+
# Optional. Sample response for the Agent.
|
|
15043
|
+
# Corresponds to the JSON property `sampleResponses`
|
|
15044
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse>]
|
|
15045
|
+
attr_accessor :sample_responses
|
|
15046
|
+
|
|
15047
|
+
def initialize(**args)
|
|
15048
|
+
update!(**args)
|
|
15049
|
+
end
|
|
15050
|
+
|
|
15051
|
+
# Update properties of this object
|
|
15052
|
+
def update!(**args)
|
|
15053
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
|
15054
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
|
15055
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
|
15056
|
+
end
|
|
15057
|
+
end
|
|
15058
|
+
|
|
15059
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
|
15060
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionAgentActionSuggestion
|
|
15061
|
+
include Google::Apis::Core::Hashable
|
|
15062
|
+
|
|
15063
|
+
# Optional. The suggested action for the agent.
|
|
15064
|
+
# Corresponds to the JSON property `agentAction`
|
|
15065
|
+
# @return [String]
|
|
15066
|
+
attr_accessor :agent_action
|
|
15067
|
+
|
|
15068
|
+
# Duplication check for the suggestion.
|
|
15069
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
15070
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult]
|
|
15071
|
+
attr_accessor :duplicate_check_result
|
|
15072
|
+
|
|
15073
|
+
# Sources for the suggestion.
|
|
15074
|
+
# Corresponds to the JSON property `sources`
|
|
15075
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
|
15076
|
+
attr_accessor :sources
|
|
15077
|
+
|
|
15078
|
+
def initialize(**args)
|
|
15079
|
+
update!(**args)
|
|
15080
|
+
end
|
|
15081
|
+
|
|
15082
|
+
# Update properties of this object
|
|
15083
|
+
def update!(**args)
|
|
15084
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
15085
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
15086
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
15087
|
+
end
|
|
15088
|
+
end
|
|
15089
|
+
|
|
15090
|
+
# Duplication check for the suggestion.
|
|
15091
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult
|
|
15092
|
+
include Google::Apis::Core::Hashable
|
|
15093
|
+
|
|
15094
|
+
# Output only. The duplicate suggestions.
|
|
15095
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
15096
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
|
|
15097
|
+
attr_accessor :duplicate_suggestions
|
|
15098
|
+
|
|
15099
|
+
def initialize(**args)
|
|
15100
|
+
update!(**args)
|
|
15101
|
+
end
|
|
15102
|
+
|
|
15103
|
+
# Update properties of this object
|
|
15104
|
+
def update!(**args)
|
|
15105
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
15106
|
+
end
|
|
15107
|
+
end
|
|
15108
|
+
|
|
15109
|
+
# The duplicate suggestion details. Keeping answer_record and sources together
|
|
15110
|
+
# as they are identifiers for duplicate suggestions.
|
|
15111
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
|
|
15112
|
+
include Google::Apis::Core::Hashable
|
|
15113
|
+
|
|
15114
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
15115
|
+
# Corresponds to the JSON property `answerRecord`
|
|
15116
|
+
# @return [String]
|
|
15117
|
+
attr_accessor :answer_record
|
|
15118
|
+
|
|
15119
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
15120
|
+
# Corresponds to the JSON property `similarityScore`
|
|
15121
|
+
# @return [Float]
|
|
15122
|
+
attr_accessor :similarity_score
|
|
15123
|
+
|
|
15124
|
+
# Sources for the suggestion.
|
|
15125
|
+
# Corresponds to the JSON property `sources`
|
|
15126
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
|
15127
|
+
attr_accessor :sources
|
|
15128
|
+
|
|
15129
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
15130
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
15131
|
+
# @return [Fixnum]
|
|
15132
|
+
attr_accessor :suggestion_index
|
|
15133
|
+
|
|
15134
|
+
def initialize(**args)
|
|
15135
|
+
update!(**args)
|
|
15136
|
+
end
|
|
15137
|
+
|
|
15138
|
+
# Update properties of this object
|
|
15139
|
+
def update!(**args)
|
|
15140
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
15141
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
15142
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
15143
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
15144
|
+
end
|
|
15145
|
+
end
|
|
15146
|
+
|
|
15147
|
+
# Sample response that the agent can use. This could be based on applicable
|
|
15148
|
+
# instructions and ingested data from other systems.
|
|
15149
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionSampleResponse
|
|
15150
|
+
include Google::Apis::Core::Hashable
|
|
15151
|
+
|
|
15152
|
+
# Duplication check for the suggestion.
|
|
15153
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
15154
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionDuplicateCheckResult]
|
|
15155
|
+
attr_accessor :duplicate_check_result
|
|
15156
|
+
|
|
15157
|
+
# Optional. Sample response for Agent in text.
|
|
15158
|
+
# Corresponds to the JSON property `responseText`
|
|
15159
|
+
# @return [String]
|
|
15160
|
+
attr_accessor :response_text
|
|
15161
|
+
|
|
15162
|
+
# Sources for the suggestion.
|
|
15163
|
+
# Corresponds to the JSON property `sources`
|
|
15164
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestionSources]
|
|
15165
|
+
attr_accessor :sources
|
|
15166
|
+
|
|
15167
|
+
def initialize(**args)
|
|
15168
|
+
update!(**args)
|
|
15169
|
+
end
|
|
15170
|
+
|
|
15171
|
+
# Update properties of this object
|
|
15172
|
+
def update!(**args)
|
|
15173
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
15174
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
|
15175
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
15176
|
+
end
|
|
15177
|
+
end
|
|
15178
|
+
|
|
15179
|
+
# Sources for the suggestion.
|
|
15180
|
+
class GoogleCloudDialogflowV2AgentCoachingSuggestionSources
|
|
15181
|
+
include Google::Apis::Core::Hashable
|
|
15182
|
+
|
|
15183
|
+
# Output only. Source instruction indexes for the suggestion. This is the index
|
|
15184
|
+
# of the applicable_instructions field.
|
|
15185
|
+
# Corresponds to the JSON property `instructionIndexes`
|
|
15186
|
+
# @return [Array<Fixnum>]
|
|
15187
|
+
attr_accessor :instruction_indexes
|
|
15188
|
+
|
|
15189
|
+
def initialize(**args)
|
|
15190
|
+
update!(**args)
|
|
15191
|
+
end
|
|
15192
|
+
|
|
15193
|
+
# Update properties of this object
|
|
15194
|
+
def update!(**args)
|
|
15195
|
+
@instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
|
|
15196
|
+
end
|
|
15197
|
+
end
|
|
15198
|
+
|
|
14799
15199
|
# Represents a part of a message possibly annotated with an entity. The part can
|
|
14800
15200
|
# be an entity or purely a part of the message between two entities or message
|
|
14801
15201
|
# start/end.
|
|
@@ -15749,6 +16149,11 @@ module Google
|
|
|
15749
16149
|
class GoogleCloudDialogflowV2GeneratorSuggestion
|
|
15750
16150
|
include Google::Apis::Core::Hashable
|
|
15751
16151
|
|
|
16152
|
+
# Suggestion for coaching agents.
|
|
16153
|
+
# Corresponds to the JSON property `agentCoachingSuggestion`
|
|
16154
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2AgentCoachingSuggestion]
|
|
16155
|
+
attr_accessor :agent_coaching_suggestion
|
|
16156
|
+
|
|
15752
16157
|
# Suggestion generated using free form generator.
|
|
15753
16158
|
# Corresponds to the JSON property `freeFormSuggestion`
|
|
15754
16159
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2FreeFormSuggestion]
|
|
@@ -15770,6 +16175,7 @@ module Google
|
|
|
15770
16175
|
|
|
15771
16176
|
# Update properties of this object
|
|
15772
16177
|
def update!(**args)
|
|
16178
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
|
15773
16179
|
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
|
15774
16180
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
|
15775
16181
|
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
|
@@ -18302,6 +18708,11 @@ module Google
|
|
|
18302
18708
|
# @return [String]
|
|
18303
18709
|
attr_accessor :action
|
|
18304
18710
|
|
|
18711
|
+
# Optional. The answer record associated with this tool call.
|
|
18712
|
+
# Corresponds to the JSON property `answerRecord`
|
|
18713
|
+
# @return [String]
|
|
18714
|
+
attr_accessor :answer_record
|
|
18715
|
+
|
|
18305
18716
|
# Output only. Create time of the tool call.
|
|
18306
18717
|
# Corresponds to the JSON property `createTime`
|
|
18307
18718
|
# @return [String]
|
|
@@ -18312,12 +18723,27 @@ module Google
|
|
|
18312
18723
|
# @return [Hash<String,Object>]
|
|
18313
18724
|
attr_accessor :input_parameters
|
|
18314
18725
|
|
|
18726
|
+
# Output only. State of the tool call.
|
|
18727
|
+
# Corresponds to the JSON property `state`
|
|
18728
|
+
# @return [String]
|
|
18729
|
+
attr_accessor :state
|
|
18730
|
+
|
|
18315
18731
|
# Optional. The tool associated with this call. Format: `projects//locations//
|
|
18316
18732
|
# tools/`.
|
|
18317
18733
|
# Corresponds to the JSON property `tool`
|
|
18318
18734
|
# @return [String]
|
|
18319
18735
|
attr_accessor :tool
|
|
18320
18736
|
|
|
18737
|
+
# Optional. A human readable description of the tool.
|
|
18738
|
+
# Corresponds to the JSON property `toolDisplayDetails`
|
|
18739
|
+
# @return [String]
|
|
18740
|
+
attr_accessor :tool_display_details
|
|
18741
|
+
|
|
18742
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
|
18743
|
+
# Corresponds to the JSON property `toolDisplayName`
|
|
18744
|
+
# @return [String]
|
|
18745
|
+
attr_accessor :tool_display_name
|
|
18746
|
+
|
|
18321
18747
|
def initialize(**args)
|
|
18322
18748
|
update!(**args)
|
|
18323
18749
|
end
|
|
@@ -18325,9 +18751,13 @@ module Google
|
|
|
18325
18751
|
# Update properties of this object
|
|
18326
18752
|
def update!(**args)
|
|
18327
18753
|
@action = args[:action] if args.key?(:action)
|
|
18754
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
18328
18755
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
18329
18756
|
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
|
18757
|
+
@state = args[:state] if args.key?(:state)
|
|
18330
18758
|
@tool = args[:tool] if args.key?(:tool)
|
|
18759
|
+
@tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
|
|
18760
|
+
@tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
|
|
18331
18761
|
end
|
|
18332
18762
|
end
|
|
18333
18763
|
|
|
@@ -18340,6 +18770,11 @@ module Google
|
|
|
18340
18770
|
# @return [String]
|
|
18341
18771
|
attr_accessor :action
|
|
18342
18772
|
|
|
18773
|
+
# Optional. The answer record associated with this tool call result.
|
|
18774
|
+
# Corresponds to the JSON property `answerRecord`
|
|
18775
|
+
# @return [String]
|
|
18776
|
+
attr_accessor :answer_record
|
|
18777
|
+
|
|
18343
18778
|
# Only populated if the response content is utf-8 encoded.
|
|
18344
18779
|
# Corresponds to the JSON property `content`
|
|
18345
18780
|
# @return [String]
|
|
@@ -18375,6 +18810,7 @@ module Google
|
|
|
18375
18810
|
# Update properties of this object
|
|
18376
18811
|
def update!(**args)
|
|
18377
18812
|
@action = args[:action] if args.key?(:action)
|
|
18813
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
18378
18814
|
@content = args[:content] if args.key?(:content)
|
|
18379
18815
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
18380
18816
|
@error = args[:error] if args.key?(:error)
|
|
@@ -18561,6 +18997,282 @@ module Google
|
|
|
18561
18997
|
end
|
|
18562
18998
|
end
|
|
18563
18999
|
|
|
19000
|
+
# Agent Coaching instructions that customer can configure.
|
|
19001
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstruction
|
|
19002
|
+
include Google::Apis::Core::Hashable
|
|
19003
|
+
|
|
19004
|
+
# Optional. The action that human agent should take. For example, "apologize for
|
|
19005
|
+
# the slow shipping". If the users only want to use agent coaching for intent
|
|
19006
|
+
# detection, agent_action can be empty
|
|
19007
|
+
# Corresponds to the JSON property `agentAction`
|
|
19008
|
+
# @return [String]
|
|
19009
|
+
attr_accessor :agent_action
|
|
19010
|
+
|
|
19011
|
+
# Optional. The condition of the instruction. For example, "the customer wants
|
|
19012
|
+
# to cancel an order". If the users want the instruction to be triggered
|
|
19013
|
+
# unconditionally, the condition can be empty.
|
|
19014
|
+
# Corresponds to the JSON property `condition`
|
|
19015
|
+
# @return [String]
|
|
19016
|
+
attr_accessor :condition
|
|
19017
|
+
|
|
19018
|
+
# Optional. The detailed description of this instruction.
|
|
19019
|
+
# Corresponds to the JSON property `displayDetails`
|
|
19020
|
+
# @return [String]
|
|
19021
|
+
attr_accessor :display_details
|
|
19022
|
+
|
|
19023
|
+
# Optional. Display name for the instruction.
|
|
19024
|
+
# Corresponds to the JSON property `displayName`
|
|
19025
|
+
# @return [String]
|
|
19026
|
+
attr_accessor :display_name
|
|
19027
|
+
|
|
19028
|
+
# Duplication check for the suggestion.
|
|
19029
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19030
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult]
|
|
19031
|
+
attr_accessor :duplicate_check_result
|
|
19032
|
+
|
|
19033
|
+
# Optional. The action that system should take. For example, "call GetOrderTime
|
|
19034
|
+
# with order_number=`order number provided by the customer`". If the users don't
|
|
19035
|
+
# have plugins or don't want to trigger plugins, the system_action can be empty
|
|
19036
|
+
# Corresponds to the JSON property `systemAction`
|
|
19037
|
+
# @return [String]
|
|
19038
|
+
attr_accessor :system_action
|
|
19039
|
+
|
|
19040
|
+
def initialize(**args)
|
|
19041
|
+
update!(**args)
|
|
19042
|
+
end
|
|
19043
|
+
|
|
19044
|
+
# Update properties of this object
|
|
19045
|
+
def update!(**args)
|
|
19046
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
19047
|
+
@condition = args[:condition] if args.key?(:condition)
|
|
19048
|
+
@display_details = args[:display_details] if args.key?(:display_details)
|
|
19049
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
|
19050
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19051
|
+
@system_action = args[:system_action] if args.key?(:system_action)
|
|
19052
|
+
end
|
|
19053
|
+
end
|
|
19054
|
+
|
|
19055
|
+
# Duplication check for the suggestion.
|
|
19056
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResult
|
|
19057
|
+
include Google::Apis::Core::Hashable
|
|
19058
|
+
|
|
19059
|
+
# Output only. The duplicate suggestions.
|
|
19060
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
19061
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion>]
|
|
19062
|
+
attr_accessor :duplicate_suggestions
|
|
19063
|
+
|
|
19064
|
+
def initialize(**args)
|
|
19065
|
+
update!(**args)
|
|
19066
|
+
end
|
|
19067
|
+
|
|
19068
|
+
# Update properties of this object
|
|
19069
|
+
def update!(**args)
|
|
19070
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
19071
|
+
end
|
|
19072
|
+
end
|
|
19073
|
+
|
|
19074
|
+
# The duplicate suggestion details.
|
|
19075
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingInstructionDuplicateCheckResultDuplicateSuggestion
|
|
19076
|
+
include Google::Apis::Core::Hashable
|
|
19077
|
+
|
|
19078
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
19079
|
+
# Corresponds to the JSON property `answerRecord`
|
|
19080
|
+
# @return [String]
|
|
19081
|
+
attr_accessor :answer_record
|
|
19082
|
+
|
|
19083
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
19084
|
+
# Corresponds to the JSON property `similarityScore`
|
|
19085
|
+
# @return [Float]
|
|
19086
|
+
attr_accessor :similarity_score
|
|
19087
|
+
|
|
19088
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
19089
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
19090
|
+
# @return [Fixnum]
|
|
19091
|
+
attr_accessor :suggestion_index
|
|
19092
|
+
|
|
19093
|
+
def initialize(**args)
|
|
19094
|
+
update!(**args)
|
|
19095
|
+
end
|
|
19096
|
+
|
|
19097
|
+
# Update properties of this object
|
|
19098
|
+
def update!(**args)
|
|
19099
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
19100
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
19101
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
19102
|
+
end
|
|
19103
|
+
end
|
|
19104
|
+
|
|
19105
|
+
# Suggestion for coaching agents.
|
|
19106
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestion
|
|
19107
|
+
include Google::Apis::Core::Hashable
|
|
19108
|
+
|
|
19109
|
+
# Optional. Suggested actions for the agent to take.
|
|
19110
|
+
# Corresponds to the JSON property `agentActionSuggestions`
|
|
19111
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion>]
|
|
19112
|
+
attr_accessor :agent_action_suggestions
|
|
19113
|
+
|
|
19114
|
+
# Optional. Instructions applicable based on the current context.
|
|
19115
|
+
# Corresponds to the JSON property `applicableInstructions`
|
|
19116
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingInstruction>]
|
|
19117
|
+
attr_accessor :applicable_instructions
|
|
19118
|
+
|
|
19119
|
+
# Optional. Sample response for the Agent.
|
|
19120
|
+
# Corresponds to the JSON property `sampleResponses`
|
|
19121
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse>]
|
|
19122
|
+
attr_accessor :sample_responses
|
|
19123
|
+
|
|
19124
|
+
def initialize(**args)
|
|
19125
|
+
update!(**args)
|
|
19126
|
+
end
|
|
19127
|
+
|
|
19128
|
+
# Update properties of this object
|
|
19129
|
+
def update!(**args)
|
|
19130
|
+
@agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
|
|
19131
|
+
@applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
|
|
19132
|
+
@sample_responses = args[:sample_responses] if args.key?(:sample_responses)
|
|
19133
|
+
end
|
|
19134
|
+
end
|
|
19135
|
+
|
|
19136
|
+
# Actions suggested for the agent. This is based on applicable instructions.
|
|
19137
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionAgentActionSuggestion
|
|
19138
|
+
include Google::Apis::Core::Hashable
|
|
19139
|
+
|
|
19140
|
+
# Optional. The suggested action for the agent.
|
|
19141
|
+
# Corresponds to the JSON property `agentAction`
|
|
19142
|
+
# @return [String]
|
|
19143
|
+
attr_accessor :agent_action
|
|
19144
|
+
|
|
19145
|
+
# Duplication check for the suggestion.
|
|
19146
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19147
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
|
|
19148
|
+
attr_accessor :duplicate_check_result
|
|
19149
|
+
|
|
19150
|
+
# Sources for the suggestion.
|
|
19151
|
+
# Corresponds to the JSON property `sources`
|
|
19152
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19153
|
+
attr_accessor :sources
|
|
19154
|
+
|
|
19155
|
+
def initialize(**args)
|
|
19156
|
+
update!(**args)
|
|
19157
|
+
end
|
|
19158
|
+
|
|
19159
|
+
# Update properties of this object
|
|
19160
|
+
def update!(**args)
|
|
19161
|
+
@agent_action = args[:agent_action] if args.key?(:agent_action)
|
|
19162
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19163
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19164
|
+
end
|
|
19165
|
+
end
|
|
19166
|
+
|
|
19167
|
+
# Duplication check for the suggestion.
|
|
19168
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult
|
|
19169
|
+
include Google::Apis::Core::Hashable
|
|
19170
|
+
|
|
19171
|
+
# Output only. The duplicate suggestions.
|
|
19172
|
+
# Corresponds to the JSON property `duplicateSuggestions`
|
|
19173
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion>]
|
|
19174
|
+
attr_accessor :duplicate_suggestions
|
|
19175
|
+
|
|
19176
|
+
def initialize(**args)
|
|
19177
|
+
update!(**args)
|
|
19178
|
+
end
|
|
19179
|
+
|
|
19180
|
+
# Update properties of this object
|
|
19181
|
+
def update!(**args)
|
|
19182
|
+
@duplicate_suggestions = args[:duplicate_suggestions] if args.key?(:duplicate_suggestions)
|
|
19183
|
+
end
|
|
19184
|
+
end
|
|
19185
|
+
|
|
19186
|
+
# The duplicate suggestion details. Keeping answer_record and sources together
|
|
19187
|
+
# as they are identifiers for duplicate suggestions.
|
|
19188
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResultDuplicateSuggestion
|
|
19189
|
+
include Google::Apis::Core::Hashable
|
|
19190
|
+
|
|
19191
|
+
# Output only. The answer record id of the past duplicate suggestion.
|
|
19192
|
+
# Corresponds to the JSON property `answerRecord`
|
|
19193
|
+
# @return [String]
|
|
19194
|
+
attr_accessor :answer_record
|
|
19195
|
+
|
|
19196
|
+
# Output only. The similarity score of between the past and current suggestion.
|
|
19197
|
+
# Corresponds to the JSON property `similarityScore`
|
|
19198
|
+
# @return [Float]
|
|
19199
|
+
attr_accessor :similarity_score
|
|
19200
|
+
|
|
19201
|
+
# Sources for the suggestion.
|
|
19202
|
+
# Corresponds to the JSON property `sources`
|
|
19203
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19204
|
+
attr_accessor :sources
|
|
19205
|
+
|
|
19206
|
+
# Output only. The index of the duplicate suggestion in the past suggestion list.
|
|
19207
|
+
# Corresponds to the JSON property `suggestionIndex`
|
|
19208
|
+
# @return [Fixnum]
|
|
19209
|
+
attr_accessor :suggestion_index
|
|
19210
|
+
|
|
19211
|
+
def initialize(**args)
|
|
19212
|
+
update!(**args)
|
|
19213
|
+
end
|
|
19214
|
+
|
|
19215
|
+
# Update properties of this object
|
|
19216
|
+
def update!(**args)
|
|
19217
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
19218
|
+
@similarity_score = args[:similarity_score] if args.key?(:similarity_score)
|
|
19219
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19220
|
+
@suggestion_index = args[:suggestion_index] if args.key?(:suggestion_index)
|
|
19221
|
+
end
|
|
19222
|
+
end
|
|
19223
|
+
|
|
19224
|
+
# Sample response that the agent can use. This could be based on applicable
|
|
19225
|
+
# instructions and ingested data from other systems.
|
|
19226
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSampleResponse
|
|
19227
|
+
include Google::Apis::Core::Hashable
|
|
19228
|
+
|
|
19229
|
+
# Duplication check for the suggestion.
|
|
19230
|
+
# Corresponds to the JSON property `duplicateCheckResult`
|
|
19231
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionDuplicateCheckResult]
|
|
19232
|
+
attr_accessor :duplicate_check_result
|
|
19233
|
+
|
|
19234
|
+
# Optional. Sample response for Agent in text.
|
|
19235
|
+
# Corresponds to the JSON property `responseText`
|
|
19236
|
+
# @return [String]
|
|
19237
|
+
attr_accessor :response_text
|
|
19238
|
+
|
|
19239
|
+
# Sources for the suggestion.
|
|
19240
|
+
# Corresponds to the JSON property `sources`
|
|
19241
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources]
|
|
19242
|
+
attr_accessor :sources
|
|
19243
|
+
|
|
19244
|
+
def initialize(**args)
|
|
19245
|
+
update!(**args)
|
|
19246
|
+
end
|
|
19247
|
+
|
|
19248
|
+
# Update properties of this object
|
|
19249
|
+
def update!(**args)
|
|
19250
|
+
@duplicate_check_result = args[:duplicate_check_result] if args.key?(:duplicate_check_result)
|
|
19251
|
+
@response_text = args[:response_text] if args.key?(:response_text)
|
|
19252
|
+
@sources = args[:sources] if args.key?(:sources)
|
|
19253
|
+
end
|
|
19254
|
+
end
|
|
19255
|
+
|
|
19256
|
+
# Sources for the suggestion.
|
|
19257
|
+
class GoogleCloudDialogflowV2beta1AgentCoachingSuggestionSources
|
|
19258
|
+
include Google::Apis::Core::Hashable
|
|
19259
|
+
|
|
19260
|
+
# Output only. Source instruction indexes for the suggestion. This is the index
|
|
19261
|
+
# of the applicable_instructions field.
|
|
19262
|
+
# Corresponds to the JSON property `instructionIndexes`
|
|
19263
|
+
# @return [Array<Fixnum>]
|
|
19264
|
+
attr_accessor :instruction_indexes
|
|
19265
|
+
|
|
19266
|
+
def initialize(**args)
|
|
19267
|
+
update!(**args)
|
|
19268
|
+
end
|
|
19269
|
+
|
|
19270
|
+
# Update properties of this object
|
|
19271
|
+
def update!(**args)
|
|
19272
|
+
@instruction_indexes = args[:instruction_indexes] if args.key?(:instruction_indexes)
|
|
19273
|
+
end
|
|
19274
|
+
end
|
|
19275
|
+
|
|
18564
19276
|
# Represents a part of a message possibly annotated with an entity. The part can
|
|
18565
19277
|
# be an entity or purely a part of the message between two entities or message
|
|
18566
19278
|
# start/end.
|
|
@@ -19261,6 +19973,11 @@ module Google
|
|
|
19261
19973
|
class GoogleCloudDialogflowV2beta1GeneratorSuggestion
|
|
19262
19974
|
include Google::Apis::Core::Hashable
|
|
19263
19975
|
|
|
19976
|
+
# Suggestion for coaching agents.
|
|
19977
|
+
# Corresponds to the JSON property `agentCoachingSuggestion`
|
|
19978
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AgentCoachingSuggestion]
|
|
19979
|
+
attr_accessor :agent_coaching_suggestion
|
|
19980
|
+
|
|
19264
19981
|
# Suggestion generated using free form generator.
|
|
19265
19982
|
# Corresponds to the JSON property `freeFormSuggestion`
|
|
19266
19983
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1FreeFormSuggestion]
|
|
@@ -19282,6 +19999,7 @@ module Google
|
|
|
19282
19999
|
|
|
19283
20000
|
# Update properties of this object
|
|
19284
20001
|
def update!(**args)
|
|
20002
|
+
@agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
|
|
19285
20003
|
@free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
|
|
19286
20004
|
@summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
|
|
19287
20005
|
@tool_call_info = args[:tool_call_info] if args.key?(:tool_call_info)
|
|
@@ -22598,6 +23316,11 @@ module Google
|
|
|
22598
23316
|
# @return [String]
|
|
22599
23317
|
attr_accessor :action
|
|
22600
23318
|
|
|
23319
|
+
# Optional. The answer record associated with this tool call.
|
|
23320
|
+
# Corresponds to the JSON property `answerRecord`
|
|
23321
|
+
# @return [String]
|
|
23322
|
+
attr_accessor :answer_record
|
|
23323
|
+
|
|
22601
23324
|
# Output only. Create time of the tool call.
|
|
22602
23325
|
# Corresponds to the JSON property `createTime`
|
|
22603
23326
|
# @return [String]
|
|
@@ -22608,12 +23331,27 @@ module Google
|
|
|
22608
23331
|
# @return [Hash<String,Object>]
|
|
22609
23332
|
attr_accessor :input_parameters
|
|
22610
23333
|
|
|
23334
|
+
# Output only. State of the tool call
|
|
23335
|
+
# Corresponds to the JSON property `state`
|
|
23336
|
+
# @return [String]
|
|
23337
|
+
attr_accessor :state
|
|
23338
|
+
|
|
22611
23339
|
# Optional. The tool associated with this call. Format: `projects//locations//
|
|
22612
23340
|
# tools/`.
|
|
22613
23341
|
# Corresponds to the JSON property `tool`
|
|
22614
23342
|
# @return [String]
|
|
22615
23343
|
attr_accessor :tool
|
|
22616
23344
|
|
|
23345
|
+
# Optional. A human readable description of the tool.
|
|
23346
|
+
# Corresponds to the JSON property `toolDisplayDetails`
|
|
23347
|
+
# @return [String]
|
|
23348
|
+
attr_accessor :tool_display_details
|
|
23349
|
+
|
|
23350
|
+
# Optional. A human readable short name of the tool, to be shown on the UI.
|
|
23351
|
+
# Corresponds to the JSON property `toolDisplayName`
|
|
23352
|
+
# @return [String]
|
|
23353
|
+
attr_accessor :tool_display_name
|
|
23354
|
+
|
|
22617
23355
|
def initialize(**args)
|
|
22618
23356
|
update!(**args)
|
|
22619
23357
|
end
|
|
@@ -22621,9 +23359,13 @@ module Google
|
|
|
22621
23359
|
# Update properties of this object
|
|
22622
23360
|
def update!(**args)
|
|
22623
23361
|
@action = args[:action] if args.key?(:action)
|
|
23362
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
22624
23363
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
22625
23364
|
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
|
23365
|
+
@state = args[:state] if args.key?(:state)
|
|
22626
23366
|
@tool = args[:tool] if args.key?(:tool)
|
|
23367
|
+
@tool_display_details = args[:tool_display_details] if args.key?(:tool_display_details)
|
|
23368
|
+
@tool_display_name = args[:tool_display_name] if args.key?(:tool_display_name)
|
|
22627
23369
|
end
|
|
22628
23370
|
end
|
|
22629
23371
|
|
|
@@ -22636,6 +23378,11 @@ module Google
|
|
|
22636
23378
|
# @return [String]
|
|
22637
23379
|
attr_accessor :action
|
|
22638
23380
|
|
|
23381
|
+
# Optional. The answer record associated with this tool call result.
|
|
23382
|
+
# Corresponds to the JSON property `answerRecord`
|
|
23383
|
+
# @return [String]
|
|
23384
|
+
attr_accessor :answer_record
|
|
23385
|
+
|
|
22639
23386
|
# Only populated if the response content is utf-8 encoded.
|
|
22640
23387
|
# Corresponds to the JSON property `content`
|
|
22641
23388
|
# @return [String]
|
|
@@ -22671,6 +23418,7 @@ module Google
|
|
|
22671
23418
|
# Update properties of this object
|
|
22672
23419
|
def update!(**args)
|
|
22673
23420
|
@action = args[:action] if args.key?(:action)
|
|
23421
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
|
22674
23422
|
@content = args[:content] if args.key?(:content)
|
|
22675
23423
|
@create_time = args[:create_time] if args.key?(:create_time)
|
|
22676
23424
|
@error = args[:error] if args.key?(:error)
|
|
@@ -23047,6 +23795,13 @@ module Google
|
|
|
23047
23795
|
# @return [Array<Google::Apis::DialogflowV3::GoogleLongrunningOperation>]
|
|
23048
23796
|
attr_accessor :operations
|
|
23049
23797
|
|
|
23798
|
+
# Unordered list. Unreachable resources. Populated when the request sets `
|
|
23799
|
+
# ListOperationsRequest.return_partial_success` and reads across collections e.g.
|
|
23800
|
+
# when attempting to list all resources across all supported locations.
|
|
23801
|
+
# Corresponds to the JSON property `unreachable`
|
|
23802
|
+
# @return [Array<String>]
|
|
23803
|
+
attr_accessor :unreachable
|
|
23804
|
+
|
|
23050
23805
|
def initialize(**args)
|
|
23051
23806
|
update!(**args)
|
|
23052
23807
|
end
|
|
@@ -23055,6 +23810,7 @@ module Google
|
|
|
23055
23810
|
def update!(**args)
|
|
23056
23811
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
23057
23812
|
@operations = args[:operations] if args.key?(:operations)
|
|
23813
|
+
@unreachable = args[:unreachable] if args.key?(:unreachable)
|
|
23058
23814
|
end
|
|
23059
23815
|
end
|
|
23060
23816
|
|