google-apis-dialogflow_v3beta1 0.98.0 → 0.100.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_v3beta1/classes.rb +819 -5
- data/lib/google/apis/dialogflow_v3beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3beta1/representations.rb +387 -0
- data/lib/google/apis/dialogflow_v3beta1/service.rb +104 -0
- metadata +3 -3
@@ -2323,6 +2323,11 @@ module Google
|
|
2323
2323
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3TextInput]
|
2324
2324
|
attr_accessor :text
|
2325
2325
|
|
2326
|
+
# The result of calling a tool's action that has been executed by the client.
|
2327
|
+
# Corresponds to the JSON property `toolCallResult`
|
2328
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ToolCallResult]
|
2329
|
+
attr_accessor :tool_call_result
|
2330
|
+
|
2326
2331
|
def initialize(**args)
|
2327
2332
|
update!(**args)
|
2328
2333
|
end
|
@@ -2335,6 +2340,7 @@ module Google
|
|
2335
2340
|
@intent = args[:intent] if args.key?(:intent)
|
2336
2341
|
@language_code = args[:language_code] if args.key?(:language_code)
|
2337
2342
|
@text = args[:text] if args.key?(:text)
|
2343
|
+
@tool_call_result = args[:tool_call_result] if args.key?(:tool_call_result)
|
2338
2344
|
end
|
2339
2345
|
end
|
2340
2346
|
|
@@ -2437,6 +2443,11 @@ module Google
|
|
2437
2443
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ResponseMessageText]
|
2438
2444
|
attr_accessor :text
|
2439
2445
|
|
2446
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
2447
|
+
# Corresponds to the JSON property `toolCall`
|
2448
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ToolCall]
|
2449
|
+
attr_accessor :tool_call
|
2450
|
+
|
2440
2451
|
def initialize(**args)
|
2441
2452
|
update!(**args)
|
2442
2453
|
end
|
@@ -2455,6 +2466,7 @@ module Google
|
|
2455
2466
|
@response_type = args[:response_type] if args.key?(:response_type)
|
2456
2467
|
@telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
|
2457
2468
|
@text = args[:text] if args.key?(:text)
|
2469
|
+
@tool_call = args[:tool_call] if args.key?(:tool_call)
|
2458
2470
|
end
|
2459
2471
|
end
|
2460
2472
|
|
@@ -3076,6 +3088,95 @@ module Google
|
|
3076
3088
|
end
|
3077
3089
|
end
|
3078
3090
|
|
3091
|
+
# Represents a call of a specific tool's action with the specified inputs.
|
3092
|
+
class GoogleCloudDialogflowCxV3ToolCall
|
3093
|
+
include Google::Apis::Core::Hashable
|
3094
|
+
|
3095
|
+
# Required. The name of the tool's action associated with this call.
|
3096
|
+
# Corresponds to the JSON property `action`
|
3097
|
+
# @return [String]
|
3098
|
+
attr_accessor :action
|
3099
|
+
|
3100
|
+
# Optional. The action's input parameters.
|
3101
|
+
# Corresponds to the JSON property `inputParameters`
|
3102
|
+
# @return [Hash<String,Object>]
|
3103
|
+
attr_accessor :input_parameters
|
3104
|
+
|
3105
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
3106
|
+
# agents//tools/`.
|
3107
|
+
# Corresponds to the JSON property `tool`
|
3108
|
+
# @return [String]
|
3109
|
+
attr_accessor :tool
|
3110
|
+
|
3111
|
+
def initialize(**args)
|
3112
|
+
update!(**args)
|
3113
|
+
end
|
3114
|
+
|
3115
|
+
# Update properties of this object
|
3116
|
+
def update!(**args)
|
3117
|
+
@action = args[:action] if args.key?(:action)
|
3118
|
+
@input_parameters = args[:input_parameters] if args.key?(:input_parameters)
|
3119
|
+
@tool = args[:tool] if args.key?(:tool)
|
3120
|
+
end
|
3121
|
+
end
|
3122
|
+
|
3123
|
+
# The result of calling a tool's action that has been executed by the client.
|
3124
|
+
class GoogleCloudDialogflowCxV3ToolCallResult
|
3125
|
+
include Google::Apis::Core::Hashable
|
3126
|
+
|
3127
|
+
# Required. The name of the tool's action associated with this call.
|
3128
|
+
# Corresponds to the JSON property `action`
|
3129
|
+
# @return [String]
|
3130
|
+
attr_accessor :action
|
3131
|
+
|
3132
|
+
# An error produced by the tool call.
|
3133
|
+
# Corresponds to the JSON property `error`
|
3134
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ToolCallResultError]
|
3135
|
+
attr_accessor :error
|
3136
|
+
|
3137
|
+
# The tool call's output parameters.
|
3138
|
+
# Corresponds to the JSON property `outputParameters`
|
3139
|
+
# @return [Hash<String,Object>]
|
3140
|
+
attr_accessor :output_parameters
|
3141
|
+
|
3142
|
+
# Required. The tool associated with this call. Format: `projects//locations//
|
3143
|
+
# agents//tools/`.
|
3144
|
+
# Corresponds to the JSON property `tool`
|
3145
|
+
# @return [String]
|
3146
|
+
attr_accessor :tool
|
3147
|
+
|
3148
|
+
def initialize(**args)
|
3149
|
+
update!(**args)
|
3150
|
+
end
|
3151
|
+
|
3152
|
+
# Update properties of this object
|
3153
|
+
def update!(**args)
|
3154
|
+
@action = args[:action] if args.key?(:action)
|
3155
|
+
@error = args[:error] if args.key?(:error)
|
3156
|
+
@output_parameters = args[:output_parameters] if args.key?(:output_parameters)
|
3157
|
+
@tool = args[:tool] if args.key?(:tool)
|
3158
|
+
end
|
3159
|
+
end
|
3160
|
+
|
3161
|
+
# An error produced by the tool call.
|
3162
|
+
class GoogleCloudDialogflowCxV3ToolCallResultError
|
3163
|
+
include Google::Apis::Core::Hashable
|
3164
|
+
|
3165
|
+
# Optional. The error message of the function.
|
3166
|
+
# Corresponds to the JSON property `message`
|
3167
|
+
# @return [String]
|
3168
|
+
attr_accessor :message
|
3169
|
+
|
3170
|
+
def initialize(**args)
|
3171
|
+
update!(**args)
|
3172
|
+
end
|
3173
|
+
|
3174
|
+
# Update properties of this object
|
3175
|
+
def update!(**args)
|
3176
|
+
@message = args[:message] if args.key?(:message)
|
3177
|
+
end
|
3178
|
+
end
|
3179
|
+
|
3079
3180
|
# A transition route specifies a intent that can be matched and/or a data
|
3080
3181
|
# condition that can be evaluated during a session. When a specified transition
|
3081
3182
|
# is matched, the following actions are taken in order: * If there is a `
|
@@ -3816,23 +3917,51 @@ module Google
|
|
3816
3917
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AgentUtterance]
|
3817
3918
|
attr_accessor :agent_utterance
|
3818
3919
|
|
3920
|
+
# Output only. Timestamp of the completion of the agent action.
|
3921
|
+
# Corresponds to the JSON property `completeTime`
|
3922
|
+
# @return [String]
|
3923
|
+
attr_accessor :complete_time
|
3924
|
+
|
3925
|
+
# Output only. The display name of the action.
|
3926
|
+
# Corresponds to the JSON property `displayName`
|
3927
|
+
# @return [String]
|
3928
|
+
attr_accessor :display_name
|
3929
|
+
|
3819
3930
|
# Event represents the event sent by the customer.
|
3820
3931
|
# Corresponds to the JSON property `event`
|
3821
3932
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Event]
|
3822
3933
|
attr_accessor :event
|
3823
3934
|
|
3824
|
-
# Stores metadata of the invocation of a CX flow.
|
3935
|
+
# Stores metadata of the invocation of a child CX flow. Flow invocation actions
|
3936
|
+
# enter the child flow.
|
3825
3937
|
# Corresponds to the JSON property `flowInvocation`
|
3826
3938
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FlowInvocation]
|
3827
3939
|
attr_accessor :flow_invocation
|
3828
3940
|
|
3941
|
+
# Stores metadata of the state update action, such as a state machine execution
|
3942
|
+
# in flows.
|
3943
|
+
# Corresponds to the JSON property `flowStateUpdate`
|
3944
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate]
|
3945
|
+
attr_accessor :flow_state_update
|
3946
|
+
|
3829
3947
|
# Stores metadata of the transition to a target CX flow. Flow transition actions
|
3830
3948
|
# exit the caller playbook and enter the child flow.
|
3831
3949
|
# Corresponds to the JSON property `flowTransition`
|
3832
3950
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FlowTransition]
|
3833
3951
|
attr_accessor :flow_transition
|
3834
3952
|
|
3835
|
-
# Stores metadata of the
|
3953
|
+
# Stores metadata of the intent match action.
|
3954
|
+
# Corresponds to the JSON property `intentMatch`
|
3955
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionIntentMatch]
|
3956
|
+
attr_accessor :intent_match
|
3957
|
+
|
3958
|
+
# Stores metadata of the call of an LLM.
|
3959
|
+
# Corresponds to the JSON property `llmCall`
|
3960
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmCall]
|
3961
|
+
attr_accessor :llm_call
|
3962
|
+
|
3963
|
+
# Stores metadata of the invocation of a child playbook. Playbook invocation
|
3964
|
+
# actions enter the child playbook.
|
3836
3965
|
# Corresponds to the JSON property `playbookInvocation`
|
3837
3966
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookInvocation]
|
3838
3967
|
attr_accessor :playbook_invocation
|
@@ -3843,11 +3972,37 @@ module Google
|
|
3843
3972
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookTransition]
|
3844
3973
|
attr_accessor :playbook_transition
|
3845
3974
|
|
3975
|
+
# Output only. Timestamp of the start of the agent action.
|
3976
|
+
# Corresponds to the JSON property `startTime`
|
3977
|
+
# @return [String]
|
3978
|
+
attr_accessor :start_time
|
3979
|
+
|
3980
|
+
# The status of the action.
|
3981
|
+
# Corresponds to the JSON property `status`
|
3982
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Status]
|
3983
|
+
attr_accessor :status
|
3984
|
+
|
3985
|
+
# Stores metadata of the Speech-to-Text action.
|
3986
|
+
# Corresponds to the JSON property `stt`
|
3987
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionStt]
|
3988
|
+
attr_accessor :stt
|
3989
|
+
|
3990
|
+
# Optional. The detailed tracing information for sub execution steps of the
|
3991
|
+
# action.
|
3992
|
+
# Corresponds to the JSON property `subExecutionSteps`
|
3993
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Span>]
|
3994
|
+
attr_accessor :sub_execution_steps
|
3995
|
+
|
3846
3996
|
# Stores metadata of the invocation of an action supported by a tool.
|
3847
3997
|
# Corresponds to the JSON property `toolUse`
|
3848
3998
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolUse]
|
3849
3999
|
attr_accessor :tool_use
|
3850
4000
|
|
4001
|
+
# Stores metadata of the Text-to-Speech action.
|
4002
|
+
# Corresponds to the JSON property `tts`
|
4003
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionTts]
|
4004
|
+
attr_accessor :tts
|
4005
|
+
|
3851
4006
|
# UserUtterance represents one message sent by the customer.
|
3852
4007
|
# Corresponds to the JSON property `userUtterance`
|
3853
4008
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1UserUtterance]
|
@@ -3860,16 +4015,203 @@ module Google
|
|
3860
4015
|
# Update properties of this object
|
3861
4016
|
def update!(**args)
|
3862
4017
|
@agent_utterance = args[:agent_utterance] if args.key?(:agent_utterance)
|
4018
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
4019
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
3863
4020
|
@event = args[:event] if args.key?(:event)
|
3864
4021
|
@flow_invocation = args[:flow_invocation] if args.key?(:flow_invocation)
|
4022
|
+
@flow_state_update = args[:flow_state_update] if args.key?(:flow_state_update)
|
3865
4023
|
@flow_transition = args[:flow_transition] if args.key?(:flow_transition)
|
4024
|
+
@intent_match = args[:intent_match] if args.key?(:intent_match)
|
4025
|
+
@llm_call = args[:llm_call] if args.key?(:llm_call)
|
3866
4026
|
@playbook_invocation = args[:playbook_invocation] if args.key?(:playbook_invocation)
|
3867
4027
|
@playbook_transition = args[:playbook_transition] if args.key?(:playbook_transition)
|
4028
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
4029
|
+
@status = args[:status] if args.key?(:status)
|
4030
|
+
@stt = args[:stt] if args.key?(:stt)
|
4031
|
+
@sub_execution_steps = args[:sub_execution_steps] if args.key?(:sub_execution_steps)
|
3868
4032
|
@tool_use = args[:tool_use] if args.key?(:tool_use)
|
4033
|
+
@tts = args[:tts] if args.key?(:tts)
|
3869
4034
|
@user_utterance = args[:user_utterance] if args.key?(:user_utterance)
|
3870
4035
|
end
|
3871
4036
|
end
|
3872
4037
|
|
4038
|
+
# Stores metadata of the state update action, such as a state machine execution
|
4039
|
+
# in flows.
|
4040
|
+
class GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdate
|
4041
|
+
include Google::Apis::Core::Hashable
|
4042
|
+
|
4043
|
+
# The destination of the transition. Format: `projects//locations//agents//flows/
|
4044
|
+
# /pages/` or `projects//locations//agents//playbooks/`.
|
4045
|
+
# Corresponds to the JSON property `destination`
|
4046
|
+
# @return [String]
|
4047
|
+
attr_accessor :destination
|
4048
|
+
|
4049
|
+
# The type of the event that triggered the state update.
|
4050
|
+
# Corresponds to the JSON property `eventType`
|
4051
|
+
# @return [String]
|
4052
|
+
attr_accessor :event_type
|
4053
|
+
|
4054
|
+
# Stores the metadata of a function call to execute.
|
4055
|
+
# Corresponds to the JSON property `functionCall`
|
4056
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall]
|
4057
|
+
attr_accessor :function_call
|
4058
|
+
|
4059
|
+
# Stores the state of a page and its flow.
|
4060
|
+
# Corresponds to the JSON property `pageState`
|
4061
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState]
|
4062
|
+
attr_accessor :page_state
|
4063
|
+
|
4064
|
+
# The updated parameters.
|
4065
|
+
# Corresponds to the JSON property `updatedParameters`
|
4066
|
+
# @return [Hash<String,Object>]
|
4067
|
+
attr_accessor :updated_parameters
|
4068
|
+
|
4069
|
+
def initialize(**args)
|
4070
|
+
update!(**args)
|
4071
|
+
end
|
4072
|
+
|
4073
|
+
# Update properties of this object
|
4074
|
+
def update!(**args)
|
4075
|
+
@destination = args[:destination] if args.key?(:destination)
|
4076
|
+
@event_type = args[:event_type] if args.key?(:event_type)
|
4077
|
+
@function_call = args[:function_call] if args.key?(:function_call)
|
4078
|
+
@page_state = args[:page_state] if args.key?(:page_state)
|
4079
|
+
@updated_parameters = args[:updated_parameters] if args.key?(:updated_parameters)
|
4080
|
+
end
|
4081
|
+
end
|
4082
|
+
|
4083
|
+
# Stores the metadata of a function call to execute.
|
4084
|
+
class GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdateFunctionCall
|
4085
|
+
include Google::Apis::Core::Hashable
|
4086
|
+
|
4087
|
+
# The name of the function call.
|
4088
|
+
# Corresponds to the JSON property `name`
|
4089
|
+
# @return [String]
|
4090
|
+
attr_accessor :name
|
4091
|
+
|
4092
|
+
def initialize(**args)
|
4093
|
+
update!(**args)
|
4094
|
+
end
|
4095
|
+
|
4096
|
+
# Update properties of this object
|
4097
|
+
def update!(**args)
|
4098
|
+
@name = args[:name] if args.key?(:name)
|
4099
|
+
end
|
4100
|
+
end
|
4101
|
+
|
4102
|
+
# Stores the state of a page and its flow.
|
4103
|
+
class GoogleCloudDialogflowCxV3beta1ActionFlowStateUpdatePageState
|
4104
|
+
include Google::Apis::Core::Hashable
|
4105
|
+
|
4106
|
+
# The display name of the page.
|
4107
|
+
# Corresponds to the JSON property `displayName`
|
4108
|
+
# @return [String]
|
4109
|
+
attr_accessor :display_name
|
4110
|
+
|
4111
|
+
# The ID of the page. Format: `projects//locations//agents//flows//pages/`.
|
4112
|
+
# Corresponds to the JSON property `page`
|
4113
|
+
# @return [String]
|
4114
|
+
attr_accessor :page
|
4115
|
+
|
4116
|
+
# The status of the page.
|
4117
|
+
# Corresponds to the JSON property `status`
|
4118
|
+
# @return [String]
|
4119
|
+
attr_accessor :status
|
4120
|
+
|
4121
|
+
def initialize(**args)
|
4122
|
+
update!(**args)
|
4123
|
+
end
|
4124
|
+
|
4125
|
+
# Update properties of this object
|
4126
|
+
def update!(**args)
|
4127
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
4128
|
+
@page = args[:page] if args.key?(:page)
|
4129
|
+
@status = args[:status] if args.key?(:status)
|
4130
|
+
end
|
4131
|
+
end
|
4132
|
+
|
4133
|
+
# Stores metadata of the intent match action.
|
4134
|
+
class GoogleCloudDialogflowCxV3beta1ActionIntentMatch
|
4135
|
+
include Google::Apis::Core::Hashable
|
4136
|
+
|
4137
|
+
# The matched intent.
|
4138
|
+
# Corresponds to the JSON property `matchedIntents`
|
4139
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent>]
|
4140
|
+
attr_accessor :matched_intents
|
4141
|
+
|
4142
|
+
def initialize(**args)
|
4143
|
+
update!(**args)
|
4144
|
+
end
|
4145
|
+
|
4146
|
+
# Update properties of this object
|
4147
|
+
def update!(**args)
|
4148
|
+
@matched_intents = args[:matched_intents] if args.key?(:matched_intents)
|
4149
|
+
end
|
4150
|
+
end
|
4151
|
+
|
4152
|
+
# Stores the matched intent, which is the result of the intent match action.
|
4153
|
+
class GoogleCloudDialogflowCxV3beta1ActionIntentMatchMatchedIntent
|
4154
|
+
include Google::Apis::Core::Hashable
|
4155
|
+
|
4156
|
+
# The display name of the matched intent.
|
4157
|
+
# Corresponds to the JSON property `displayName`
|
4158
|
+
# @return [String]
|
4159
|
+
attr_accessor :display_name
|
4160
|
+
|
4161
|
+
# The generative fallback response of the matched intent.
|
4162
|
+
# Corresponds to the JSON property `generativeFallback`
|
4163
|
+
# @return [Hash<String,Object>]
|
4164
|
+
attr_accessor :generative_fallback
|
4165
|
+
|
4166
|
+
# The ID of the matched intent.
|
4167
|
+
# Corresponds to the JSON property `intentId`
|
4168
|
+
# @return [String]
|
4169
|
+
attr_accessor :intent_id
|
4170
|
+
|
4171
|
+
# The score of the matched intent.
|
4172
|
+
# Corresponds to the JSON property `score`
|
4173
|
+
# @return [Float]
|
4174
|
+
attr_accessor :score
|
4175
|
+
|
4176
|
+
def initialize(**args)
|
4177
|
+
update!(**args)
|
4178
|
+
end
|
4179
|
+
|
4180
|
+
# Update properties of this object
|
4181
|
+
def update!(**args)
|
4182
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
4183
|
+
@generative_fallback = args[:generative_fallback] if args.key?(:generative_fallback)
|
4184
|
+
@intent_id = args[:intent_id] if args.key?(:intent_id)
|
4185
|
+
@score = args[:score] if args.key?(:score)
|
4186
|
+
end
|
4187
|
+
end
|
4188
|
+
|
4189
|
+
# Stores metadata of the Speech-to-Text action.
|
4190
|
+
class GoogleCloudDialogflowCxV3beta1ActionStt
|
4191
|
+
include Google::Apis::Core::Hashable
|
4192
|
+
|
4193
|
+
def initialize(**args)
|
4194
|
+
update!(**args)
|
4195
|
+
end
|
4196
|
+
|
4197
|
+
# Update properties of this object
|
4198
|
+
def update!(**args)
|
4199
|
+
end
|
4200
|
+
end
|
4201
|
+
|
4202
|
+
# Stores metadata of the Text-to-Speech action.
|
4203
|
+
class GoogleCloudDialogflowCxV3beta1ActionTts
|
4204
|
+
include Google::Apis::Core::Hashable
|
4205
|
+
|
4206
|
+
def initialize(**args)
|
4207
|
+
update!(**args)
|
4208
|
+
end
|
4209
|
+
|
4210
|
+
# Update properties of this object
|
4211
|
+
def update!(**args)
|
4212
|
+
end
|
4213
|
+
end
|
4214
|
+
|
3873
4215
|
# Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
|
3874
4216
|
# Settings exposed at lower level overrides the settings exposed at higher level.
|
3875
4217
|
# Overriding occurs at the sub-setting level. For example, the
|
@@ -4464,6 +4806,15 @@ module Google
|
|
4464
4806
|
class GoogleCloudDialogflowCxV3beta1AgentUtterance
|
4465
4807
|
include Google::Apis::Core::Hashable
|
4466
4808
|
|
4809
|
+
# Optional. True if the agent utterance needs to be generated by the LLM. Only
|
4810
|
+
# used in webhook response to differentiate from empty text. Revisit whether we
|
4811
|
+
# need this field or mark `text` as optional when we expose webhook interface to
|
4812
|
+
# customer.
|
4813
|
+
# Corresponds to the JSON property `requireGeneration`
|
4814
|
+
# @return [Boolean]
|
4815
|
+
attr_accessor :require_generation
|
4816
|
+
alias_method :require_generation?, :require_generation
|
4817
|
+
|
4467
4818
|
# Required. Message content in text.
|
4468
4819
|
# Corresponds to the JSON property `text`
|
4469
4820
|
# @return [String]
|
@@ -4475,6 +4826,7 @@ module Google
|
|
4475
4826
|
|
4476
4827
|
# Update properties of this object
|
4477
4828
|
def update!(**args)
|
4829
|
+
@require_generation = args[:require_generation] if args.key?(:require_generation)
|
4478
4830
|
@text = args[:text] if args.key?(:text)
|
4479
4831
|
end
|
4480
4832
|
end
|
@@ -6600,6 +6952,11 @@ module Google
|
|
6600
6952
|
# @return [String]
|
6601
6953
|
attr_accessor :event
|
6602
6954
|
|
6955
|
+
# Optional. Unstructured text payload of the event.
|
6956
|
+
# Corresponds to the JSON property `text`
|
6957
|
+
# @return [String]
|
6958
|
+
attr_accessor :text
|
6959
|
+
|
6603
6960
|
def initialize(**args)
|
6604
6961
|
update!(**args)
|
6605
6962
|
end
|
@@ -6607,6 +6964,7 @@ module Google
|
|
6607
6964
|
# Update properties of this object
|
6608
6965
|
def update!(**args)
|
6609
6966
|
@event = args[:event] if args.key?(:event)
|
6967
|
+
@text = args[:text] if args.key?(:text)
|
6610
6968
|
end
|
6611
6969
|
end
|
6612
6970
|
|
@@ -6780,6 +7138,25 @@ module Google
|
|
6780
7138
|
end
|
6781
7139
|
end
|
6782
7140
|
|
7141
|
+
# Exception thrown during the execution of an action.
|
7142
|
+
class GoogleCloudDialogflowCxV3beta1ExceptionDetail
|
7143
|
+
include Google::Apis::Core::Hashable
|
7144
|
+
|
7145
|
+
# Optional. The error message.
|
7146
|
+
# Corresponds to the JSON property `errorMessage`
|
7147
|
+
# @return [String]
|
7148
|
+
attr_accessor :error_message
|
7149
|
+
|
7150
|
+
def initialize(**args)
|
7151
|
+
update!(**args)
|
7152
|
+
end
|
7153
|
+
|
7154
|
+
# Update properties of this object
|
7155
|
+
def update!(**args)
|
7156
|
+
@error_message = args[:error_message] if args.key?(:error_message)
|
7157
|
+
end
|
7158
|
+
end
|
7159
|
+
|
6783
7160
|
# Represents an experiment in an environment.
|
6784
7161
|
class GoogleCloudDialogflowCxV3beta1Experiment
|
6785
7162
|
include Google::Apis::Core::Hashable
|
@@ -7416,6 +7793,38 @@ module Google
|
|
7416
7793
|
end
|
7417
7794
|
end
|
7418
7795
|
|
7796
|
+
# The request message for Playbooks.ExportPlaybook.
|
7797
|
+
class GoogleCloudDialogflowCxV3beta1ExportPlaybookRequest
|
7798
|
+
include Google::Apis::Core::Hashable
|
7799
|
+
|
7800
|
+
# Optional. The data format of the exported agent. If not specified, `BLOB` is
|
7801
|
+
# assumed.
|
7802
|
+
# Corresponds to the JSON property `dataFormat`
|
7803
|
+
# @return [String]
|
7804
|
+
attr_accessor :data_format
|
7805
|
+
|
7806
|
+
# Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
7807
|
+
# URI to export the playbook to. The format of this URI must be `gs:///`. If
|
7808
|
+
# left unspecified, the serialized playbook is returned inline. Dialogflow
|
7809
|
+
# performs a write operation for the Cloud Storage object on the caller's behalf,
|
7810
|
+
# so your request authentication must have write permissions for the object.
|
7811
|
+
# For more information, see [Dialogflow access control](https://cloud.google.com/
|
7812
|
+
# dialogflow/cx/docs/concept/access-control#storage).
|
7813
|
+
# Corresponds to the JSON property `playbookUri`
|
7814
|
+
# @return [String]
|
7815
|
+
attr_accessor :playbook_uri
|
7816
|
+
|
7817
|
+
def initialize(**args)
|
7818
|
+
update!(**args)
|
7819
|
+
end
|
7820
|
+
|
7821
|
+
# Update properties of this object
|
7822
|
+
def update!(**args)
|
7823
|
+
@data_format = args[:data_format] if args.key?(:data_format)
|
7824
|
+
@playbook_uri = args[:playbook_uri] if args.key?(:playbook_uri)
|
7825
|
+
end
|
7826
|
+
end
|
7827
|
+
|
7419
7828
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
7420
7829
|
# This message currently has no fields.
|
7421
7830
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
@@ -7717,7 +8126,8 @@ module Google
|
|
7717
8126
|
end
|
7718
8127
|
end
|
7719
8128
|
|
7720
|
-
# Stores metadata of the invocation of a CX flow.
|
8129
|
+
# Stores metadata of the invocation of a child CX flow. Flow invocation actions
|
8130
|
+
# enter the child flow.
|
7721
8131
|
class GoogleCloudDialogflowCxV3beta1FlowInvocation
|
7722
8132
|
include Google::Apis::Core::Hashable
|
7723
8133
|
|
@@ -7727,7 +8137,7 @@ module Google
|
|
7727
8137
|
attr_accessor :display_name
|
7728
8138
|
|
7729
8139
|
# Required. The unique identifier of the flow. Format: `projects//locations//
|
7730
|
-
# agents
|
8140
|
+
# agents/`.
|
7731
8141
|
# Corresponds to the JSON property `flow`
|
7732
8142
|
# @return [String]
|
7733
8143
|
attr_accessor :flow
|
@@ -7808,6 +8218,11 @@ module Google
|
|
7808
8218
|
# @return [String]
|
7809
8219
|
attr_accessor :flow
|
7810
8220
|
|
8221
|
+
# A list of input parameters for the action.
|
8222
|
+
# Corresponds to the JSON property `inputActionParameters`
|
8223
|
+
# @return [Hash<String,Object>]
|
8224
|
+
attr_accessor :input_action_parameters
|
8225
|
+
|
7811
8226
|
def initialize(**args)
|
7812
8227
|
update!(**args)
|
7813
8228
|
end
|
@@ -7816,6 +8231,7 @@ module Google
|
|
7816
8231
|
def update!(**args)
|
7817
8232
|
@display_name = args[:display_name] if args.key?(:display_name)
|
7818
8233
|
@flow = args[:flow] if args.key?(:flow)
|
8234
|
+
@input_action_parameters = args[:input_action_parameters] if args.key?(:input_action_parameters)
|
7819
8235
|
end
|
7820
8236
|
end
|
7821
8237
|
|
@@ -9012,6 +9428,40 @@ module Google
|
|
9012
9428
|
end
|
9013
9429
|
end
|
9014
9430
|
|
9431
|
+
# The request message for Playbooks.ImportPlaybook.
|
9432
|
+
class GoogleCloudDialogflowCxV3beta1ImportPlaybookRequest
|
9433
|
+
include Google::Apis::Core::Hashable
|
9434
|
+
|
9435
|
+
# The playbook import strategy used for resource conflict resolution associated
|
9436
|
+
# with an ImportPlaybookRequest.
|
9437
|
+
# Corresponds to the JSON property `importStrategy`
|
9438
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy]
|
9439
|
+
attr_accessor :import_strategy
|
9440
|
+
|
9441
|
+
# Uncompressed raw byte content for playbook.
|
9442
|
+
# Corresponds to the JSON property `playbookContent`
|
9443
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
9444
|
+
# @return [String]
|
9445
|
+
attr_accessor :playbook_content
|
9446
|
+
|
9447
|
+
# [Dialogflow access control] (https://cloud.google.com/dialogflow/cx/docs/
|
9448
|
+
# concept/access-control#storage).
|
9449
|
+
# Corresponds to the JSON property `playbookUri`
|
9450
|
+
# @return [String]
|
9451
|
+
attr_accessor :playbook_uri
|
9452
|
+
|
9453
|
+
def initialize(**args)
|
9454
|
+
update!(**args)
|
9455
|
+
end
|
9456
|
+
|
9457
|
+
# Update properties of this object
|
9458
|
+
def update!(**args)
|
9459
|
+
@import_strategy = args[:import_strategy] if args.key?(:import_strategy)
|
9460
|
+
@playbook_content = args[:playbook_content] if args.key?(:playbook_content)
|
9461
|
+
@playbook_uri = args[:playbook_uri] if args.key?(:playbook_uri)
|
9462
|
+
end
|
9463
|
+
end
|
9464
|
+
|
9015
9465
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
9016
9466
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
9017
9467
|
include Google::Apis::Core::Hashable
|
@@ -10261,6 +10711,117 @@ module Google
|
|
10261
10711
|
end
|
10262
10712
|
end
|
10263
10713
|
|
10714
|
+
# Stores metadata of the call of an LLM.
|
10715
|
+
class GoogleCloudDialogflowCxV3beta1LlmCall
|
10716
|
+
include Google::Apis::Core::Hashable
|
10717
|
+
|
10718
|
+
# The model of the LLM call.
|
10719
|
+
# Corresponds to the JSON property `model`
|
10720
|
+
# @return [String]
|
10721
|
+
attr_accessor :model
|
10722
|
+
|
10723
|
+
# A list of relevant examples used for the LLM prompt.
|
10724
|
+
# Corresponds to the JSON property `retrievedExamples`
|
10725
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample>]
|
10726
|
+
attr_accessor :retrieved_examples
|
10727
|
+
|
10728
|
+
# The temperature of the LLM call.
|
10729
|
+
# Corresponds to the JSON property `temperature`
|
10730
|
+
# @return [Float]
|
10731
|
+
attr_accessor :temperature
|
10732
|
+
|
10733
|
+
# Stores token counts of the LLM call.
|
10734
|
+
# Corresponds to the JSON property `tokenCount`
|
10735
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1LlmCallTokenCount]
|
10736
|
+
attr_accessor :token_count
|
10737
|
+
|
10738
|
+
def initialize(**args)
|
10739
|
+
update!(**args)
|
10740
|
+
end
|
10741
|
+
|
10742
|
+
# Update properties of this object
|
10743
|
+
def update!(**args)
|
10744
|
+
@model = args[:model] if args.key?(:model)
|
10745
|
+
@retrieved_examples = args[:retrieved_examples] if args.key?(:retrieved_examples)
|
10746
|
+
@temperature = args[:temperature] if args.key?(:temperature)
|
10747
|
+
@token_count = args[:token_count] if args.key?(:token_count)
|
10748
|
+
end
|
10749
|
+
end
|
10750
|
+
|
10751
|
+
# Relevant example used for the LLM prompt.
|
10752
|
+
class GoogleCloudDialogflowCxV3beta1LlmCallRetrievedExample
|
10753
|
+
include Google::Apis::Core::Hashable
|
10754
|
+
|
10755
|
+
# The display name of the example.
|
10756
|
+
# Corresponds to the JSON property `exampleDisplayName`
|
10757
|
+
# @return [String]
|
10758
|
+
attr_accessor :example_display_name
|
10759
|
+
|
10760
|
+
# The id of the example.
|
10761
|
+
# Corresponds to the JSON property `exampleId`
|
10762
|
+
# @return [String]
|
10763
|
+
attr_accessor :example_id
|
10764
|
+
|
10765
|
+
# Optional. The matched retrieval label of this LLM call.
|
10766
|
+
# Corresponds to the JSON property `matchedRetrievalLabel`
|
10767
|
+
# @return [String]
|
10768
|
+
attr_accessor :matched_retrieval_label
|
10769
|
+
|
10770
|
+
# Retrieval strategy of the example.
|
10771
|
+
# Corresponds to the JSON property `retrievalStrategy`
|
10772
|
+
# @return [String]
|
10773
|
+
attr_accessor :retrieval_strategy
|
10774
|
+
|
10775
|
+
def initialize(**args)
|
10776
|
+
update!(**args)
|
10777
|
+
end
|
10778
|
+
|
10779
|
+
# Update properties of this object
|
10780
|
+
def update!(**args)
|
10781
|
+
@example_display_name = args[:example_display_name] if args.key?(:example_display_name)
|
10782
|
+
@example_id = args[:example_id] if args.key?(:example_id)
|
10783
|
+
@matched_retrieval_label = args[:matched_retrieval_label] if args.key?(:matched_retrieval_label)
|
10784
|
+
@retrieval_strategy = args[:retrieval_strategy] if args.key?(:retrieval_strategy)
|
10785
|
+
end
|
10786
|
+
end
|
10787
|
+
|
10788
|
+
# Stores token counts of the LLM call.
|
10789
|
+
class GoogleCloudDialogflowCxV3beta1LlmCallTokenCount
|
10790
|
+
include Google::Apis::Core::Hashable
|
10791
|
+
|
10792
|
+
# The number of tokens used for the conversation history in the prompt.
|
10793
|
+
# Corresponds to the JSON property `conversationContextTokenCount`
|
10794
|
+
# @return [Fixnum]
|
10795
|
+
attr_accessor :conversation_context_token_count
|
10796
|
+
|
10797
|
+
# The number of tokens used for the retrieved examples in the prompt.
|
10798
|
+
# Corresponds to the JSON property `exampleTokenCount`
|
10799
|
+
# @return [Fixnum]
|
10800
|
+
attr_accessor :example_token_count
|
10801
|
+
|
10802
|
+
# The total number of tokens used for the input to the LLM call.
|
10803
|
+
# Corresponds to the JSON property `totalInputTokenCount`
|
10804
|
+
# @return [Fixnum]
|
10805
|
+
attr_accessor :total_input_token_count
|
10806
|
+
|
10807
|
+
# The total number of tokens used for the output of the LLM call.
|
10808
|
+
# Corresponds to the JSON property `totalOutputTokenCount`
|
10809
|
+
# @return [Fixnum]
|
10810
|
+
attr_accessor :total_output_token_count
|
10811
|
+
|
10812
|
+
def initialize(**args)
|
10813
|
+
update!(**args)
|
10814
|
+
end
|
10815
|
+
|
10816
|
+
# Update properties of this object
|
10817
|
+
def update!(**args)
|
10818
|
+
@conversation_context_token_count = args[:conversation_context_token_count] if args.key?(:conversation_context_token_count)
|
10819
|
+
@example_token_count = args[:example_token_count] if args.key?(:example_token_count)
|
10820
|
+
@total_input_token_count = args[:total_input_token_count] if args.key?(:total_input_token_count)
|
10821
|
+
@total_output_token_count = args[:total_output_token_count] if args.key?(:total_output_token_count)
|
10822
|
+
end
|
10823
|
+
end
|
10824
|
+
|
10264
10825
|
# Settings for LLM models.
|
10265
10826
|
class GoogleCloudDialogflowCxV3beta1LlmModelSettings
|
10266
10827
|
include Google::Apis::Core::Hashable
|
@@ -10504,6 +11065,38 @@ module Google
|
|
10504
11065
|
end
|
10505
11066
|
end
|
10506
11067
|
|
11068
|
+
# A named metric is a metric with name, value and unit.
|
11069
|
+
class GoogleCloudDialogflowCxV3beta1NamedMetric
|
11070
|
+
include Google::Apis::Core::Hashable
|
11071
|
+
|
11072
|
+
# The name of the metric.
|
11073
|
+
# Corresponds to the JSON property `name`
|
11074
|
+
# @return [String]
|
11075
|
+
attr_accessor :name
|
11076
|
+
|
11077
|
+
# The unit in which this metric is reported. Follows [The Unified Code for Units
|
11078
|
+
# of Measure](https://unitsofmeasure.org/ucum.html) standard.
|
11079
|
+
# Corresponds to the JSON property `unit`
|
11080
|
+
# @return [String]
|
11081
|
+
attr_accessor :unit
|
11082
|
+
|
11083
|
+
# The value of the metric.
|
11084
|
+
# Corresponds to the JSON property `value`
|
11085
|
+
# @return [Object]
|
11086
|
+
attr_accessor :value
|
11087
|
+
|
11088
|
+
def initialize(**args)
|
11089
|
+
update!(**args)
|
11090
|
+
end
|
11091
|
+
|
11092
|
+
# Update properties of this object
|
11093
|
+
def update!(**args)
|
11094
|
+
@name = args[:name] if args.key?(:name)
|
11095
|
+
@unit = args[:unit] if args.key?(:unit)
|
11096
|
+
@value = args[:value] if args.key?(:value)
|
11097
|
+
end
|
11098
|
+
end
|
11099
|
+
|
10507
11100
|
# Settings related to NLU.
|
10508
11101
|
class GoogleCloudDialogflowCxV3beta1NluSettings
|
10509
11102
|
include Google::Apis::Core::Hashable
|
@@ -10990,6 +11583,43 @@ module Google
|
|
10990
11583
|
end
|
10991
11584
|
end
|
10992
11585
|
|
11586
|
+
# The playbook import strategy used for resource conflict resolution associated
|
11587
|
+
# with an ImportPlaybookRequest.
|
11588
|
+
class GoogleCloudDialogflowCxV3beta1PlaybookImportStrategy
|
11589
|
+
include Google::Apis::Core::Hashable
|
11590
|
+
|
11591
|
+
# Optional. Specifies the import strategy used when resolving conflicts with the
|
11592
|
+
# main playbook. If not specified, 'CREATE_NEW' is assumed.
|
11593
|
+
# Corresponds to the JSON property `mainPlaybookImportStrategy`
|
11594
|
+
# @return [String]
|
11595
|
+
attr_accessor :main_playbook_import_strategy
|
11596
|
+
|
11597
|
+
# Optional. Specifies the import strategy used when resolving referenced
|
11598
|
+
# playbook/flow conflicts. If not specified, 'CREATE_NEW' is assumed.
|
11599
|
+
# Corresponds to the JSON property `nestedResourceImportStrategy`
|
11600
|
+
# @return [String]
|
11601
|
+
attr_accessor :nested_resource_import_strategy
|
11602
|
+
|
11603
|
+
# Optional. Specifies the import strategy used when resolving tool conflicts. If
|
11604
|
+
# not specified, 'CREATE_NEW' is assumed. This will be applied after the main
|
11605
|
+
# playbook and nested resource import strategies, meaning if the playbook that
|
11606
|
+
# references the tool is skipped, the tool will also be skipped.
|
11607
|
+
# Corresponds to the JSON property `toolImportStrategy`
|
11608
|
+
# @return [String]
|
11609
|
+
attr_accessor :tool_import_strategy
|
11610
|
+
|
11611
|
+
def initialize(**args)
|
11612
|
+
update!(**args)
|
11613
|
+
end
|
11614
|
+
|
11615
|
+
# Update properties of this object
|
11616
|
+
def update!(**args)
|
11617
|
+
@main_playbook_import_strategy = args[:main_playbook_import_strategy] if args.key?(:main_playbook_import_strategy)
|
11618
|
+
@nested_resource_import_strategy = args[:nested_resource_import_strategy] if args.key?(:nested_resource_import_strategy)
|
11619
|
+
@tool_import_strategy = args[:tool_import_strategy] if args.key?(:tool_import_strategy)
|
11620
|
+
end
|
11621
|
+
end
|
11622
|
+
|
10993
11623
|
# Input of the playbook.
|
10994
11624
|
class GoogleCloudDialogflowCxV3beta1PlaybookInput
|
10995
11625
|
include Google::Apis::Core::Hashable
|
@@ -11043,7 +11673,8 @@ module Google
|
|
11043
11673
|
end
|
11044
11674
|
end
|
11045
11675
|
|
11046
|
-
# Stores metadata of the invocation of a child playbook.
|
11676
|
+
# Stores metadata of the invocation of a child playbook. Playbook invocation
|
11677
|
+
# actions enter the child playbook.
|
11047
11678
|
class GoogleCloudDialogflowCxV3beta1PlaybookInvocation
|
11048
11679
|
include Google::Apis::Core::Hashable
|
11049
11680
|
|
@@ -11101,6 +11732,11 @@ module Google
|
|
11101
11732
|
# @return [String]
|
11102
11733
|
attr_accessor :execution_summary
|
11103
11734
|
|
11735
|
+
# End state of the playbook.
|
11736
|
+
# Corresponds to the JSON property `state`
|
11737
|
+
# @return [String]
|
11738
|
+
attr_accessor :state
|
11739
|
+
|
11104
11740
|
def initialize(**args)
|
11105
11741
|
update!(**args)
|
11106
11742
|
end
|
@@ -11109,6 +11745,7 @@ module Google
|
|
11109
11745
|
def update!(**args)
|
11110
11746
|
@action_parameters = args[:action_parameters] if args.key?(:action_parameters)
|
11111
11747
|
@execution_summary = args[:execution_summary] if args.key?(:execution_summary)
|
11748
|
+
@state = args[:state] if args.key?(:state)
|
11112
11749
|
end
|
11113
11750
|
end
|
11114
11751
|
|
@@ -11147,6 +11784,11 @@ module Google
|
|
11147
11784
|
# @return [String]
|
11148
11785
|
attr_accessor :display_name
|
11149
11786
|
|
11787
|
+
# A list of input parameters for the action.
|
11788
|
+
# Corresponds to the JSON property `inputActionParameters`
|
11789
|
+
# @return [Hash<String,Object>]
|
11790
|
+
attr_accessor :input_action_parameters
|
11791
|
+
|
11150
11792
|
# Required. The unique identifier of the playbook. Format: `projects//locations//
|
11151
11793
|
# agents//playbooks/`.
|
11152
11794
|
# Corresponds to the JSON property `playbook`
|
@@ -11160,6 +11802,7 @@ module Google
|
|
11160
11802
|
# Update properties of this object
|
11161
11803
|
def update!(**args)
|
11162
11804
|
@display_name = args[:display_name] if args.key?(:display_name)
|
11805
|
+
@input_action_parameters = args[:input_action_parameters] if args.key?(:input_action_parameters)
|
11163
11806
|
@playbook = args[:playbook] if args.key?(:playbook)
|
11164
11807
|
end
|
11165
11808
|
end
|
@@ -12145,6 +12788,43 @@ module Google
|
|
12145
12788
|
end
|
12146
12789
|
end
|
12147
12790
|
|
12791
|
+
# The request message for Playbooks.RestorePlaybookVersion.
|
12792
|
+
class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionRequest
|
12793
|
+
include Google::Apis::Core::Hashable
|
12794
|
+
|
12795
|
+
def initialize(**args)
|
12796
|
+
update!(**args)
|
12797
|
+
end
|
12798
|
+
|
12799
|
+
# Update properties of this object
|
12800
|
+
def update!(**args)
|
12801
|
+
end
|
12802
|
+
end
|
12803
|
+
|
12804
|
+
# The response message for Playbooks.RestorePlaybookVersion.
|
12805
|
+
class GoogleCloudDialogflowCxV3beta1RestorePlaybookVersionResponse
|
12806
|
+
include Google::Apis::Core::Hashable
|
12807
|
+
|
12808
|
+
# Playbook is the basic building block to instruct the LLM how to execute a
|
12809
|
+
# certain task. A playbook consists of a goal to accomplish, an optional list of
|
12810
|
+
# step by step instructions (the step instruction may refers to name of the
|
12811
|
+
# custom or default plugin tools to use) to perform the task, a list of
|
12812
|
+
# contextual input data to be passed in at the beginning of the invoked, and a
|
12813
|
+
# list of output parameters to store the playbook result.
|
12814
|
+
# Corresponds to the JSON property `playbook`
|
12815
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Playbook]
|
12816
|
+
attr_accessor :playbook
|
12817
|
+
|
12818
|
+
def initialize(**args)
|
12819
|
+
update!(**args)
|
12820
|
+
end
|
12821
|
+
|
12822
|
+
# Update properties of this object
|
12823
|
+
def update!(**args)
|
12824
|
+
@playbook = args[:playbook] if args.key?(:playbook)
|
12825
|
+
end
|
12826
|
+
end
|
12827
|
+
|
12148
12828
|
# The request message for Tools.RestoreToolVersion.
|
12149
12829
|
class GoogleCloudDialogflowCxV3beta1RestoreToolVersionRequest
|
12150
12830
|
include Google::Apis::Core::Hashable
|
@@ -12754,6 +13434,49 @@ module Google
|
|
12754
13434
|
end
|
12755
13435
|
end
|
12756
13436
|
|
13437
|
+
# A span represents a sub execution step of an action.
|
13438
|
+
class GoogleCloudDialogflowCxV3beta1Span
|
13439
|
+
include Google::Apis::Core::Hashable
|
13440
|
+
|
13441
|
+
# Timestamp of the completion of the span.
|
13442
|
+
# Corresponds to the JSON property `completeTime`
|
13443
|
+
# @return [String]
|
13444
|
+
attr_accessor :complete_time
|
13445
|
+
|
13446
|
+
# The unordered collection of metrics in this span.
|
13447
|
+
# Corresponds to the JSON property `metrics`
|
13448
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1NamedMetric>]
|
13449
|
+
attr_accessor :metrics
|
13450
|
+
|
13451
|
+
# The name of the span.
|
13452
|
+
# Corresponds to the JSON property `name`
|
13453
|
+
# @return [String]
|
13454
|
+
attr_accessor :name
|
13455
|
+
|
13456
|
+
# Timestamp of the start of the span.
|
13457
|
+
# Corresponds to the JSON property `startTime`
|
13458
|
+
# @return [String]
|
13459
|
+
attr_accessor :start_time
|
13460
|
+
|
13461
|
+
# The metadata tags of the span such as span type.
|
13462
|
+
# Corresponds to the JSON property `tags`
|
13463
|
+
# @return [Array<String>]
|
13464
|
+
attr_accessor :tags
|
13465
|
+
|
13466
|
+
def initialize(**args)
|
13467
|
+
update!(**args)
|
13468
|
+
end
|
13469
|
+
|
13470
|
+
# Update properties of this object
|
13471
|
+
def update!(**args)
|
13472
|
+
@complete_time = args[:complete_time] if args.key?(:complete_time)
|
13473
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
13474
|
+
@name = args[:name] if args.key?(:name)
|
13475
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
13476
|
+
@tags = args[:tags] if args.key?(:tags)
|
13477
|
+
end
|
13478
|
+
end
|
13479
|
+
|
12757
13480
|
# Settings related to speech recognition.
|
12758
13481
|
class GoogleCloudDialogflowCxV3beta1SpeechToTextSettings
|
12759
13482
|
include Google::Apis::Core::Hashable
|
@@ -12787,6 +13510,25 @@ module Google
|
|
12787
13510
|
end
|
12788
13511
|
end
|
12789
13512
|
|
13513
|
+
# The status of the action.
|
13514
|
+
class GoogleCloudDialogflowCxV3beta1Status
|
13515
|
+
include Google::Apis::Core::Hashable
|
13516
|
+
|
13517
|
+
# Exception thrown during the execution of an action.
|
13518
|
+
# Corresponds to the JSON property `exception`
|
13519
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ExceptionDetail]
|
13520
|
+
attr_accessor :exception
|
13521
|
+
|
13522
|
+
def initialize(**args)
|
13523
|
+
update!(**args)
|
13524
|
+
end
|
13525
|
+
|
13526
|
+
# Update properties of this object
|
13527
|
+
def update!(**args)
|
13528
|
+
@exception = args[:exception] if args.key?(:exception)
|
13529
|
+
end
|
13530
|
+
end
|
13531
|
+
|
12790
13532
|
# The request message for Experiments.StopExperiment.
|
12791
13533
|
class GoogleCloudDialogflowCxV3beta1StopExperimentRequest
|
12792
13534
|
include Google::Apis::Core::Hashable
|
@@ -13920,6 +14662,11 @@ module Google
|
|
13920
14662
|
# @return [String]
|
13921
14663
|
attr_accessor :action
|
13922
14664
|
|
14665
|
+
# The tracing information for the data store tool.
|
14666
|
+
# Corresponds to the JSON property `dataStoreToolTrace`
|
14667
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace]
|
14668
|
+
attr_accessor :data_store_tool_trace
|
14669
|
+
|
13923
14670
|
# Output only. The display name of the tool.
|
13924
14671
|
# Corresponds to the JSON property `displayName`
|
13925
14672
|
# @return [String]
|
@@ -13941,6 +14688,11 @@ module Google
|
|
13941
14688
|
# @return [String]
|
13942
14689
|
attr_accessor :tool
|
13943
14690
|
|
14691
|
+
# The tracing information for the webhook tool.
|
14692
|
+
# Corresponds to the JSON property `webhookToolTrace`
|
14693
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace]
|
14694
|
+
attr_accessor :webhook_tool_trace
|
14695
|
+
|
13944
14696
|
def initialize(**args)
|
13945
14697
|
update!(**args)
|
13946
14698
|
end
|
@@ -13948,10 +14700,59 @@ module Google
|
|
13948
14700
|
# Update properties of this object
|
13949
14701
|
def update!(**args)
|
13950
14702
|
@action = args[:action] if args.key?(:action)
|
14703
|
+
@data_store_tool_trace = args[:data_store_tool_trace] if args.key?(:data_store_tool_trace)
|
13951
14704
|
@display_name = args[:display_name] if args.key?(:display_name)
|
13952
14705
|
@input_action_parameters = args[:input_action_parameters] if args.key?(:input_action_parameters)
|
13953
14706
|
@output_action_parameters = args[:output_action_parameters] if args.key?(:output_action_parameters)
|
13954
14707
|
@tool = args[:tool] if args.key?(:tool)
|
14708
|
+
@webhook_tool_trace = args[:webhook_tool_trace] if args.key?(:webhook_tool_trace)
|
14709
|
+
end
|
14710
|
+
end
|
14711
|
+
|
14712
|
+
# The tracing information for the data store tool.
|
14713
|
+
class GoogleCloudDialogflowCxV3beta1ToolUseDataStoreToolTrace
|
14714
|
+
include Google::Apis::Core::Hashable
|
14715
|
+
|
14716
|
+
# Data store connection feature output signals. Might be only partially field if
|
14717
|
+
# processing stop before the final answer. Reasons for this can be, but are not
|
14718
|
+
# limited to: empty UCS search results, positive RAI check outcome, grounding
|
14719
|
+
# failure, ...
|
14720
|
+
# Corresponds to the JSON property `dataStoreConnectionSignals`
|
14721
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals]
|
14722
|
+
attr_accessor :data_store_connection_signals
|
14723
|
+
|
14724
|
+
def initialize(**args)
|
14725
|
+
update!(**args)
|
14726
|
+
end
|
14727
|
+
|
14728
|
+
# Update properties of this object
|
14729
|
+
def update!(**args)
|
14730
|
+
@data_store_connection_signals = args[:data_store_connection_signals] if args.key?(:data_store_connection_signals)
|
14731
|
+
end
|
14732
|
+
end
|
14733
|
+
|
14734
|
+
# The tracing information for the webhook tool.
|
14735
|
+
class GoogleCloudDialogflowCxV3beta1ToolUseWebhookToolTrace
|
14736
|
+
include Google::Apis::Core::Hashable
|
14737
|
+
|
14738
|
+
# Optional. The tag of the webhook.
|
14739
|
+
# Corresponds to the JSON property `webhookTag`
|
14740
|
+
# @return [String]
|
14741
|
+
attr_accessor :webhook_tag
|
14742
|
+
|
14743
|
+
# Optional. The url of the webhook.
|
14744
|
+
# Corresponds to the JSON property `webhookUri`
|
14745
|
+
# @return [String]
|
14746
|
+
attr_accessor :webhook_uri
|
14747
|
+
|
14748
|
+
def initialize(**args)
|
14749
|
+
update!(**args)
|
14750
|
+
end
|
14751
|
+
|
14752
|
+
# Update properties of this object
|
14753
|
+
def update!(**args)
|
14754
|
+
@webhook_tag = args[:webhook_tag] if args.key?(:webhook_tag)
|
14755
|
+
@webhook_uri = args[:webhook_uri] if args.key?(:webhook_uri)
|
13955
14756
|
end
|
13956
14757
|
end
|
13957
14758
|
|
@@ -14495,6 +15296,17 @@ module Google
|
|
14495
15296
|
class GoogleCloudDialogflowCxV3beta1UserUtterance
|
14496
15297
|
include Google::Apis::Core::Hashable
|
14497
15298
|
|
15299
|
+
# Optional. Audio input.
|
15300
|
+
# Corresponds to the JSON property `audio`
|
15301
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
15302
|
+
# @return [String]
|
15303
|
+
attr_accessor :audio
|
15304
|
+
|
15305
|
+
# Optional. Tokens of the audio input.
|
15306
|
+
# Corresponds to the JSON property `audioTokens`
|
15307
|
+
# @return [Array<Fixnum>]
|
15308
|
+
attr_accessor :audio_tokens
|
15309
|
+
|
14498
15310
|
# Required. Message content in text.
|
14499
15311
|
# Corresponds to the JSON property `text`
|
14500
15312
|
# @return [String]
|
@@ -14506,6 +15318,8 @@ module Google
|
|
14506
15318
|
|
14507
15319
|
# Update properties of this object
|
14508
15320
|
def update!(**args)
|
15321
|
+
@audio = args[:audio] if args.key?(:audio)
|
15322
|
+
@audio_tokens = args[:audio_tokens] if args.key?(:audio_tokens)
|
14509
15323
|
@text = args[:text] if args.key?(:text)
|
14510
15324
|
end
|
14511
15325
|
end
|