google-cloud-ces-v1 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/ces/v1/agent_pb.rb +30 -0
- data/lib/google/cloud/ces/v1/agent_service/client.rb +5315 -0
- data/lib/google/cloud/ces/v1/agent_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1/agent_service/operations.rb +841 -0
- data/lib/google/cloud/ces/v1/agent_service/paths.rb +424 -0
- data/lib/google/cloud/ces/v1/agent_service/rest/client.rb +4944 -0
- data/lib/google/cloud/ces/v1/agent_service/rest/operations.rb +925 -0
- data/lib/google/cloud/ces/v1/agent_service/rest/service_stub.rb +3028 -0
- data/lib/google/cloud/ces/v1/agent_service/rest.rb +55 -0
- data/lib/google/cloud/ces/v1/agent_service.rb +57 -0
- data/lib/google/cloud/ces/v1/agent_service_pb.rb +105 -0
- data/lib/google/cloud/ces/v1/agent_service_services_pb.rb +142 -0
- data/lib/google/cloud/ces/v1/agent_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/agent_transfers_pb.rb +29 -0
- data/lib/google/cloud/ces/v1/app_pb.rb +58 -0
- data/lib/google/cloud/ces/v1/app_version_pb.rb +32 -0
- data/lib/google/cloud/ces/v1/auth_pb.rb +34 -0
- data/lib/google/cloud/ces/v1/bigquery_export_pb.rb +23 -0
- data/lib/google/cloud/ces/v1/bindings_override.rb +75 -0
- data/lib/google/cloud/ces/v1/changelog_pb.rb +26 -0
- data/lib/google/cloud/ces/v1/client_function_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/common_pb.rb +46 -0
- data/lib/google/cloud/ces/v1/connector_tool_pb.rb +27 -0
- data/lib/google/cloud/ces/v1/connector_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/conversation_pb.rb +31 -0
- data/lib/google/cloud/ces/v1/data_store_pb.rb +27 -0
- data/lib/google/cloud/ces/v1/data_store_tool_pb.rb +40 -0
- data/lib/google/cloud/ces/v1/deployment_pb.rb +26 -0
- data/lib/google/cloud/ces/v1/example_pb.rb +34 -0
- data/lib/google/cloud/ces/v1/fakes_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/file_search_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/google_search_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/guardrail_pb.rb +37 -0
- data/lib/google/cloud/ces/v1/mcp_tool_pb.rb +26 -0
- data/lib/google/cloud/ces/v1/mcp_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/omnichannel_pb.rb +31 -0
- data/lib/google/cloud/ces/v1/omnichannel_service_pb.rb +27 -0
- data/lib/google/cloud/ces/v1/open_api_tool_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/open_api_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/python_function_pb.rb +23 -0
- data/lib/google/cloud/ces/v1/rest.rb +41 -0
- data/lib/google/cloud/ces/v1/schema_pb.rb +25 -0
- data/lib/google/cloud/ces/v1/search_suggestions_pb.rb +22 -0
- data/lib/google/cloud/ces/v1/security_settings_pb.rb +27 -0
- data/lib/google/cloud/ces/v1/session_service/client.rb +759 -0
- data/lib/google/cloud/ces/v1/session_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1/session_service/paths.rb +117 -0
- data/lib/google/cloud/ces/v1/session_service/rest/client.rb +560 -0
- data/lib/google/cloud/ces/v1/session_service/rest/service_stub.rb +199 -0
- data/lib/google/cloud/ces/v1/session_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1/session_service.rb +55 -0
- data/lib/google/cloud/ces/v1/session_service_pb.rb +50 -0
- data/lib/google/cloud/ces/v1/session_service_services_pb.rb +119 -0
- data/lib/google/cloud/ces/v1/system_tool_pb.rb +23 -0
- data/lib/google/cloud/ces/v1/tool_pb.rb +38 -0
- data/lib/google/cloud/ces/v1/tool_service/client.rb +723 -0
- data/lib/google/cloud/ces/v1/tool_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1/tool_service/paths.rb +94 -0
- data/lib/google/cloud/ces/v1/tool_service/rest/client.rb +667 -0
- data/lib/google/cloud/ces/v1/tool_service/rest/service_stub.rb +267 -0
- data/lib/google/cloud/ces/v1/tool_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1/tool_service.rb +55 -0
- data/lib/google/cloud/ces/v1/tool_service_pb.rb +35 -0
- data/lib/google/cloud/ces/v1/tool_service_services_pb.rb +50 -0
- data/lib/google/cloud/ces/v1/toolset_pb.rb +30 -0
- data/lib/google/cloud/ces/v1/toolset_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1/version.rb +7 -2
- data/lib/google/cloud/ces/v1/widget_service/client.rb +501 -0
- data/lib/google/cloud/ces/v1/widget_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1/widget_service/paths.rb +75 -0
- data/lib/google/cloud/ces/v1/widget_service/rest/client.rb +459 -0
- data/lib/google/cloud/ces/v1/widget_service/rest/service_stub.rb +143 -0
- data/lib/google/cloud/ces/v1/widget_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1/widget_service.rb +55 -0
- data/lib/google/cloud/ces/v1/widget_service_pb.rb +28 -0
- data/lib/google/cloud/ces/v1/widget_service_services_pb.rb +46 -0
- data/lib/google/cloud/ces/v1/widget_tool_pb.rb +29 -0
- data/lib/google/cloud/ces/v1.rb +48 -0
- data/lib/google-cloud-ces-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/ces/v1/agent.rb +224 -0
- data/proto_docs/google/cloud/ces/v1/agent_service.rb +1250 -0
- data/proto_docs/google/cloud/ces/v1/agent_tool.rb +42 -0
- data/proto_docs/google/cloud/ces/v1/agent_transfers.rb +111 -0
- data/proto_docs/google/cloud/ces/v1/app.rb +685 -0
- data/proto_docs/google/cloud/ces/v1/app_version.rb +83 -0
- data/proto_docs/google/cloud/ces/v1/auth.rb +214 -0
- data/proto_docs/google/cloud/ces/v1/bigquery_export.rb +45 -0
- data/proto_docs/google/cloud/ces/v1/changelog.rb +73 -0
- data/proto_docs/google/cloud/ces/v1/client_function.rb +48 -0
- data/proto_docs/google/cloud/ces/v1/common.rb +375 -0
- data/proto_docs/google/cloud/ces/v1/connector_tool.rb +122 -0
- data/proto_docs/google/cloud/ces/v1/connector_toolset.rb +52 -0
- data/proto_docs/google/cloud/ces/v1/conversation.rb +152 -0
- data/proto_docs/google/cloud/ces/v1/data_store.rb +102 -0
- data/proto_docs/google/cloud/ces/v1/data_store_tool.rb +328 -0
- data/proto_docs/google/cloud/ces/v1/deployment.rb +62 -0
- data/proto_docs/google/cloud/ces/v1/example.rb +244 -0
- data/proto_docs/google/cloud/ces/v1/fakes.rb +55 -0
- data/proto_docs/google/cloud/ces/v1/file_search_tool.rb +60 -0
- data/proto_docs/google/cloud/ces/v1/google_search_tool.rb +76 -0
- data/proto_docs/google/cloud/ces/v1/guardrail.rb +324 -0
- data/proto_docs/google/cloud/ces/v1/mcp_tool.rb +85 -0
- data/proto_docs/google/cloud/ces/v1/mcp_toolset.rb +71 -0
- data/proto_docs/google/cloud/ces/v1/omnichannel.rb +163 -0
- data/proto_docs/google/cloud/ces/v1/omnichannel_service.rb +45 -0
- data/proto_docs/google/cloud/ces/v1/open_api_tool.rb +66 -0
- data/proto_docs/google/cloud/ces/v1/open_api_toolset.rb +57 -0
- data/proto_docs/google/cloud/ces/v1/python_function.rb +44 -0
- data/proto_docs/google/cloud/ces/v1/schema.rb +162 -0
- data/proto_docs/google/cloud/ces/v1/search_suggestions.rb +55 -0
- data/proto_docs/google/cloud/ces/v1/security_settings.rb +80 -0
- data/proto_docs/google/cloud/ces/v1/session_service.rb +464 -0
- data/proto_docs/google/cloud/ces/v1/system_tool.rb +38 -0
- data/proto_docs/google/cloud/ces/v1/tool.rb +126 -0
- data/proto_docs/google/cloud/ces/v1/tool_service.rb +168 -0
- data/proto_docs/google/cloud/ces/v1/toolset.rb +80 -0
- data/proto_docs/google/cloud/ces/v1/toolset_tool.rb +40 -0
- data/proto_docs/google/cloud/ces/v1/widget_service.rb +62 -0
- data/proto_docs/google/cloud/ces/v1/widget_tool.rb +146 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +183 -9
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Ces
|
|
23
|
+
module V1
|
|
24
|
+
# Request message for
|
|
25
|
+
# {::Google::Cloud::Ces::V1::ToolService::Client#execute_tool ToolService.ExecuteTool}.
|
|
26
|
+
# @!attribute [rw] tool
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Optional. The name of the tool to execute.
|
|
29
|
+
# Format:
|
|
30
|
+
# projects/\\{project}/locations/\\{location}/apps/\\{app}/tools/\\{tool}
|
|
31
|
+
#
|
|
32
|
+
# Note: The following fields are mutually exclusive: `tool`, `toolset_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
33
|
+
# @!attribute [rw] toolset_tool
|
|
34
|
+
# @return [::Google::Cloud::Ces::V1::ToolsetTool]
|
|
35
|
+
# Optional. The toolset tool to execute. Only one tool should match the
|
|
36
|
+
# predicate from the toolset. Otherwise, an error will be returned.
|
|
37
|
+
#
|
|
38
|
+
# Note: The following fields are mutually exclusive: `toolset_tool`, `tool`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
39
|
+
# @!attribute [rw] variables
|
|
40
|
+
# @return [::Google::Protobuf::Struct]
|
|
41
|
+
# Optional. The variables that are available for the tool execution.
|
|
42
|
+
#
|
|
43
|
+
# Note: The following fields are mutually exclusive: `variables`, `context`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
44
|
+
# @!attribute [rw] context
|
|
45
|
+
# @return [::Google::Protobuf::Struct]
|
|
46
|
+
# Optional. The
|
|
47
|
+
# [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment
|
|
48
|
+
# for details) to be passed to the Python tool.
|
|
49
|
+
#
|
|
50
|
+
# Note: The following fields are mutually exclusive: `context`, `variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
51
|
+
# @!attribute [rw] parent
|
|
52
|
+
# @return [::String]
|
|
53
|
+
# Required. The resource name of the app which the tool/toolset belongs to.
|
|
54
|
+
# Format: `projects/{project}/locations/{location}/apps/{app}`
|
|
55
|
+
# @!attribute [rw] args
|
|
56
|
+
# @return [::Google::Protobuf::Struct]
|
|
57
|
+
# Optional. The input parameters and values for the tool in JSON object
|
|
58
|
+
# format.
|
|
59
|
+
class ExecuteToolRequest
|
|
60
|
+
include ::Google::Protobuf::MessageExts
|
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Response message for
|
|
65
|
+
# {::Google::Cloud::Ces::V1::ToolService::Client#execute_tool ToolService.ExecuteTool}.
|
|
66
|
+
# @!attribute [rw] tool
|
|
67
|
+
# @return [::String]
|
|
68
|
+
# The name of the tool that got executed.
|
|
69
|
+
# Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
|
|
70
|
+
#
|
|
71
|
+
# Note: The following fields are mutually exclusive: `tool`, `toolset_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
72
|
+
# @!attribute [rw] toolset_tool
|
|
73
|
+
# @return [::Google::Cloud::Ces::V1::ToolsetTool]
|
|
74
|
+
# The toolset tool that got executed.
|
|
75
|
+
#
|
|
76
|
+
# Note: The following fields are mutually exclusive: `toolset_tool`, `tool`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
77
|
+
# @!attribute [rw] response
|
|
78
|
+
# @return [::Google::Protobuf::Struct]
|
|
79
|
+
# The tool execution result in JSON object format.
|
|
80
|
+
# Use "output" key to specify tool response and "error" key to specify
|
|
81
|
+
# error details (if any). If "output" and "error" keys are not specified,
|
|
82
|
+
# then whole "response" is treated as tool execution result.
|
|
83
|
+
# @!attribute [rw] variables
|
|
84
|
+
# @return [::Google::Protobuf::Struct]
|
|
85
|
+
# The variable values at the end of the tool execution.
|
|
86
|
+
class ExecuteToolResponse
|
|
87
|
+
include ::Google::Protobuf::MessageExts
|
|
88
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Request message for
|
|
92
|
+
# {::Google::Cloud::Ces::V1::ToolService::Client#retrieve_tool_schema ToolService.RetrieveToolSchema}.
|
|
93
|
+
# @!attribute [rw] tool
|
|
94
|
+
# @return [::String]
|
|
95
|
+
# Optional. The name of the tool to retrieve the schema for.
|
|
96
|
+
# Format:
|
|
97
|
+
# projects/\\{project}/locations/\\{location}/apps/\\{app}/tools/\\{tool}
|
|
98
|
+
#
|
|
99
|
+
# Note: The following fields are mutually exclusive: `tool`, `toolset_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
100
|
+
# @!attribute [rw] toolset_tool
|
|
101
|
+
# @return [::Google::Cloud::Ces::V1::ToolsetTool]
|
|
102
|
+
# Optional. The toolset tool to retrieve the schema for. Only one tool
|
|
103
|
+
# should match the predicate from the toolset. Otherwise, an error will be
|
|
104
|
+
# returned.
|
|
105
|
+
#
|
|
106
|
+
# Note: The following fields are mutually exclusive: `toolset_tool`, `tool`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
107
|
+
# @!attribute [rw] parent
|
|
108
|
+
# @return [::String]
|
|
109
|
+
# Required. The resource name of the app which the tool/toolset belongs to.
|
|
110
|
+
# Format: `projects/{project}/locations/{location}/apps/{app}`
|
|
111
|
+
class RetrieveToolSchemaRequest
|
|
112
|
+
include ::Google::Protobuf::MessageExts
|
|
113
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Response message for
|
|
117
|
+
# {::Google::Cloud::Ces::V1::ToolService::Client#retrieve_tool_schema ToolService.RetrieveToolSchema}.
|
|
118
|
+
# @!attribute [rw] tool
|
|
119
|
+
# @return [::String]
|
|
120
|
+
# The name of the tool that the schema is for.
|
|
121
|
+
# Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
|
|
122
|
+
#
|
|
123
|
+
# Note: The following fields are mutually exclusive: `tool`, `toolset_tool`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
124
|
+
# @!attribute [rw] toolset_tool
|
|
125
|
+
# @return [::Google::Cloud::Ces::V1::ToolsetTool]
|
|
126
|
+
# The toolset tool that the schema is for.
|
|
127
|
+
#
|
|
128
|
+
# Note: The following fields are mutually exclusive: `toolset_tool`, `tool`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
129
|
+
# @!attribute [rw] input_schema
|
|
130
|
+
# @return [::Google::Cloud::Ces::V1::Schema]
|
|
131
|
+
# The schema of the tool input parameters.
|
|
132
|
+
# @!attribute [rw] output_schema
|
|
133
|
+
# @return [::Google::Cloud::Ces::V1::Schema]
|
|
134
|
+
# The schema of the tool output parameters.
|
|
135
|
+
class RetrieveToolSchemaResponse
|
|
136
|
+
include ::Google::Protobuf::MessageExts
|
|
137
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Request message for
|
|
141
|
+
# {::Google::Cloud::Ces::V1::ToolService::Client#retrieve_tools ToolService.RetrieveTools}.
|
|
142
|
+
# @!attribute [rw] toolset
|
|
143
|
+
# @return [::String]
|
|
144
|
+
# Required. The name of the toolset to retrieve the tools for.
|
|
145
|
+
# Format:
|
|
146
|
+
# `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
|
|
147
|
+
# @!attribute [rw] tool_ids
|
|
148
|
+
# @return [::Array<::String>]
|
|
149
|
+
# Optional. The identifiers of the tools to retrieve from the toolset.
|
|
150
|
+
# If empty, all tools in the toolset will be returned.
|
|
151
|
+
class RetrieveToolsRequest
|
|
152
|
+
include ::Google::Protobuf::MessageExts
|
|
153
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Response message for
|
|
157
|
+
# {::Google::Cloud::Ces::V1::ToolService::Client#retrieve_tools ToolService.RetrieveTools}.
|
|
158
|
+
# @!attribute [rw] tools
|
|
159
|
+
# @return [::Array<::Google::Cloud::Ces::V1::Tool>]
|
|
160
|
+
# The list of tools that are included in the specified toolset.
|
|
161
|
+
class RetrieveToolsResponse
|
|
162
|
+
include ::Google::Protobuf::MessageExts
|
|
163
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
end
|
|
168
|
+
end
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Ces
|
|
23
|
+
module V1
|
|
24
|
+
# A toolset represents a group of dynamically managed tools that can be used
|
|
25
|
+
# by the agent.
|
|
26
|
+
# @!attribute [rw] mcp_toolset
|
|
27
|
+
# @return [::Google::Cloud::Ces::V1::McpToolset]
|
|
28
|
+
# Optional. A toolset that contains a list of tools that are offered by the
|
|
29
|
+
# MCP server.
|
|
30
|
+
#
|
|
31
|
+
# Note: The following fields are mutually exclusive: `mcp_toolset`, `open_api_toolset`, `connector_toolset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
32
|
+
# @!attribute [rw] open_api_toolset
|
|
33
|
+
# @return [::Google::Cloud::Ces::V1::OpenApiToolset]
|
|
34
|
+
# Optional. A toolset that contains a list of tools that are defined by an
|
|
35
|
+
# OpenAPI schema.
|
|
36
|
+
#
|
|
37
|
+
# Note: The following fields are mutually exclusive: `open_api_toolset`, `mcp_toolset`, `connector_toolset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
38
|
+
# @!attribute [rw] connector_toolset
|
|
39
|
+
# @return [::Google::Cloud::Ces::V1::ConnectorToolset]
|
|
40
|
+
# Optional. A toolset that generates tools from an Integration Connectors
|
|
41
|
+
# Connection.
|
|
42
|
+
#
|
|
43
|
+
# Note: The following fields are mutually exclusive: `connector_toolset`, `mcp_toolset`, `open_api_toolset`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
44
|
+
# @!attribute [rw] name
|
|
45
|
+
# @return [::String]
|
|
46
|
+
# Identifier. The unique identifier of the toolset.
|
|
47
|
+
# Format:
|
|
48
|
+
# `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
|
|
49
|
+
# @!attribute [rw] display_name
|
|
50
|
+
# @return [::String]
|
|
51
|
+
# Optional. The display name of the toolset. Must be unique within the same
|
|
52
|
+
# app.
|
|
53
|
+
# @!attribute [rw] description
|
|
54
|
+
# @return [::String]
|
|
55
|
+
# Optional. The description of the toolset.
|
|
56
|
+
# @!attribute [r] create_time
|
|
57
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
58
|
+
# Output only. Timestamp when the toolset was created.
|
|
59
|
+
# @!attribute [r] update_time
|
|
60
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
61
|
+
# Output only. Timestamp when the toolset was last updated.
|
|
62
|
+
# @!attribute [rw] etag
|
|
63
|
+
# @return [::String]
|
|
64
|
+
# ETag used to ensure the object hasn't changed during a read-modify-write
|
|
65
|
+
# operation. If the etag is empty, the update will overwrite any concurrent
|
|
66
|
+
# changes.
|
|
67
|
+
# @!attribute [rw] execution_type
|
|
68
|
+
# @return [::Google::Cloud::Ces::V1::ExecutionType]
|
|
69
|
+
# Optional. The execution type of the tools in the toolset.
|
|
70
|
+
# @!attribute [rw] tool_fake_config
|
|
71
|
+
# @return [::Google::Cloud::Ces::V1::ToolFakeConfig]
|
|
72
|
+
# Optional. Configuration for tools behavior in fake mode.
|
|
73
|
+
class Toolset
|
|
74
|
+
include ::Google::Protobuf::MessageExts
|
|
75
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Ces
|
|
23
|
+
module V1
|
|
24
|
+
# A tool that is created from a toolset.
|
|
25
|
+
# @!attribute [rw] toolset
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Required. The resource name of the Toolset from which this tool is derived.
|
|
28
|
+
# Format:
|
|
29
|
+
# `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
|
|
30
|
+
# @!attribute [rw] tool_id
|
|
31
|
+
# @return [::String]
|
|
32
|
+
# Optional. The tool ID to filter the tools to retrieve the schema for.
|
|
33
|
+
class ToolsetTool
|
|
34
|
+
include ::Google::Protobuf::MessageExts
|
|
35
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Ces
|
|
23
|
+
module V1
|
|
24
|
+
# Request message for
|
|
25
|
+
# {::Google::Cloud::Ces::V1::WidgetService::Client#generate_chat_token WidgetService.GenerateChatToken}.
|
|
26
|
+
# @!attribute [rw] name
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Required. The session name to generate the chat token for.
|
|
29
|
+
# Format:
|
|
30
|
+
# projects/\\{project}/locations/\\{location}/apps/\\{app}/sessions/\\{session}
|
|
31
|
+
# @!attribute [rw] deployment
|
|
32
|
+
# @return [::String]
|
|
33
|
+
# Required. The deployment of the app to use for the session.
|
|
34
|
+
# Format:
|
|
35
|
+
# projects/\\{project}/locations/\\{location}/apps/\\{app}/deployments/\\{deployment}
|
|
36
|
+
# @!attribute [rw] recaptcha_token
|
|
37
|
+
# @return [::String]
|
|
38
|
+
# Optional. The reCAPTCHA token generated by the client-side chat widget.
|
|
39
|
+
# @!attribute [rw] live_handoff_enabled
|
|
40
|
+
# @return [::Boolean]
|
|
41
|
+
# Optional. Indicates if live handoff is enabled for the session.
|
|
42
|
+
class GenerateChatTokenRequest
|
|
43
|
+
include ::Google::Protobuf::MessageExts
|
|
44
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
# Response message for
|
|
48
|
+
# {::Google::Cloud::Ces::V1::WidgetService::Client#generate_chat_token WidgetService.GenerateChatToken}.
|
|
49
|
+
# @!attribute [rw] chat_token
|
|
50
|
+
# @return [::String]
|
|
51
|
+
# The session scoped token for chat widget to authenticate with Session APIs.
|
|
52
|
+
# @!attribute [rw] expire_time
|
|
53
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
54
|
+
# The time at which the chat token expires.
|
|
55
|
+
class GenerateChatTokenResponse
|
|
56
|
+
include ::Google::Protobuf::MessageExts
|
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Ces
|
|
23
|
+
module V1
|
|
24
|
+
# Represents a widget tool that the agent can invoke. When the tool is chosen
|
|
25
|
+
# by the agent, agent will return the widget to the client. The client is
|
|
26
|
+
# responsible for processing the widget and generating the next user query to
|
|
27
|
+
# continue the interaction with the agent.
|
|
28
|
+
# @!attribute [rw] parameters
|
|
29
|
+
# @return [::Google::Cloud::Ces::V1::Schema]
|
|
30
|
+
# Optional. The input parameters of the widget tool.
|
|
31
|
+
# @!attribute [rw] name
|
|
32
|
+
# @return [::String]
|
|
33
|
+
# Required. The display name of the widget tool.
|
|
34
|
+
# @!attribute [rw] description
|
|
35
|
+
# @return [::String]
|
|
36
|
+
# Optional. The description of the widget tool.
|
|
37
|
+
# @!attribute [rw] widget_type
|
|
38
|
+
# @return [::Google::Cloud::Ces::V1::WidgetTool::WidgetType]
|
|
39
|
+
# Optional. The type of the widget tool. If not specified, the default type
|
|
40
|
+
# will be CUSTOMIZED.
|
|
41
|
+
# @!attribute [rw] ui_config
|
|
42
|
+
# @return [::Google::Protobuf::Struct]
|
|
43
|
+
# Optional. Configuration for rendering the widget.
|
|
44
|
+
# @!attribute [rw] data_mapping
|
|
45
|
+
# @return [::Google::Cloud::Ces::V1::WidgetTool::DataMapping]
|
|
46
|
+
# Optional. The mapping that defines how data from a source tool is mapped to
|
|
47
|
+
# the widget's input parameters.
|
|
48
|
+
class WidgetTool
|
|
49
|
+
include ::Google::Protobuf::MessageExts
|
|
50
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
51
|
+
|
|
52
|
+
# Configuration for mapping data from a source tool to the widget's input
|
|
53
|
+
# parameters.
|
|
54
|
+
# @!attribute [rw] source_tool_name
|
|
55
|
+
# @return [::String]
|
|
56
|
+
# Optional. The resource name of the tool that provides the data for the
|
|
57
|
+
# widget (e.g., a search tool or a custom function). Format:
|
|
58
|
+
# `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
|
|
59
|
+
# @!attribute [rw] field_mappings
|
|
60
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
61
|
+
# Optional. A map of widget input parameter fields to the corresponding
|
|
62
|
+
# output fields of the source tool.
|
|
63
|
+
# @!attribute [rw] python_function
|
|
64
|
+
# @return [::Google::Cloud::Ces::V1::PythonFunction]
|
|
65
|
+
# Optional. Configuration for a Python function used to transform the
|
|
66
|
+
# source tool's output into the widget's input format.
|
|
67
|
+
# @!attribute [rw] mode
|
|
68
|
+
# @return [::Google::Cloud::Ces::V1::WidgetTool::DataMapping::Mode]
|
|
69
|
+
# Optional. The mode of the data mapping.
|
|
70
|
+
# @!attribute [rw] python_script
|
|
71
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
72
|
+
# @return [::String]
|
|
73
|
+
# Deprecated: Use `python_function` instead.
|
|
74
|
+
class DataMapping
|
|
75
|
+
include ::Google::Protobuf::MessageExts
|
|
76
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
77
|
+
|
|
78
|
+
# @!attribute [rw] key
|
|
79
|
+
# @return [::String]
|
|
80
|
+
# @!attribute [rw] value
|
|
81
|
+
# @return [::String]
|
|
82
|
+
class FieldMappingsEntry
|
|
83
|
+
include ::Google::Protobuf::MessageExts
|
|
84
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# The strategy used to map data from the source tool to the widget.
|
|
88
|
+
module Mode
|
|
89
|
+
# Unspecified mode.
|
|
90
|
+
MODE_UNSPECIFIED = 0
|
|
91
|
+
|
|
92
|
+
# Use the `field_mappings` map for data transformation.
|
|
93
|
+
FIELD_MAPPING = 1
|
|
94
|
+
|
|
95
|
+
# Use the `python_script` for data transformation.
|
|
96
|
+
PYTHON_SCRIPT = 2
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# All available widget types.
|
|
101
|
+
# New values may be added to this enum in the future.
|
|
102
|
+
module WidgetType
|
|
103
|
+
# Unspecified widget type.
|
|
104
|
+
WIDGET_TYPE_UNSPECIFIED = 0
|
|
105
|
+
|
|
106
|
+
# Custom widget type.
|
|
107
|
+
CUSTOM = 1
|
|
108
|
+
|
|
109
|
+
# Product carousel widget.
|
|
110
|
+
PRODUCT_CAROUSEL = 2
|
|
111
|
+
|
|
112
|
+
# Product details widget.
|
|
113
|
+
PRODUCT_DETAILS = 3
|
|
114
|
+
|
|
115
|
+
# Quick actions widget.
|
|
116
|
+
QUICK_ACTIONS = 4
|
|
117
|
+
|
|
118
|
+
# Product comparison widget.
|
|
119
|
+
PRODUCT_COMPARISON = 5
|
|
120
|
+
|
|
121
|
+
# Advanced product details widget.
|
|
122
|
+
ADVANCED_PRODUCT_DETAILS = 6
|
|
123
|
+
|
|
124
|
+
# Short form widget.
|
|
125
|
+
SHORT_FORM = 7
|
|
126
|
+
|
|
127
|
+
# Overall satisfaction widget.
|
|
128
|
+
OVERALL_SATISFACTION = 8
|
|
129
|
+
|
|
130
|
+
# Order summary widget.
|
|
131
|
+
ORDER_SUMMARY = 9
|
|
132
|
+
|
|
133
|
+
# Appointment details widget.
|
|
134
|
+
APPOINTMENT_DETAILS = 10
|
|
135
|
+
|
|
136
|
+
# Appointment scheduler widget.
|
|
137
|
+
APPOINTMENT_SCHEDULER = 11
|
|
138
|
+
|
|
139
|
+
# Contact form widget.
|
|
140
|
+
CONTACT_FORM = 12
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
146
|
+
end
|