google-cloud-ces-v1beta 0.a → 0.2.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.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/ces/v1beta/agent_card_pb.rb +26 -0
  6. data/lib/google/cloud/ces/v1beta/agent_pb.rb +30 -0
  7. data/lib/google/cloud/ces/v1beta/agent_service/client.rb +5641 -0
  8. data/lib/google/cloud/ces/v1beta/agent_service/credentials.rb +48 -0
  9. data/lib/google/cloud/ces/v1beta/agent_service/operations.rb +843 -0
  10. data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +481 -0
  11. data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +5249 -0
  12. data/lib/google/cloud/ces/v1beta/agent_service/rest/operations.rb +927 -0
  13. data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +3213 -0
  14. data/lib/google/cloud/ces/v1beta/agent_service/rest.rb +55 -0
  15. data/lib/google/cloud/ces/v1beta/agent_service.rb +57 -0
  16. data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +132 -0
  17. data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +148 -0
  18. data/lib/google/cloud/ces/v1beta/agent_tool_pb.rb +24 -0
  19. data/lib/google/cloud/ces/v1beta/agent_transfers_pb.rb +29 -0
  20. data/lib/google/cloud/ces/v1beta/app_pb.rb +70 -0
  21. data/lib/google/cloud/ces/v1beta/app_version_pb.rb +32 -0
  22. data/lib/google/cloud/ces/v1beta/auth_pb.rb +34 -0
  23. data/lib/google/cloud/ces/v1beta/bigquery_export_pb.rb +23 -0
  24. data/lib/google/cloud/ces/v1beta/bindings_override.rb +75 -0
  25. data/lib/google/cloud/ces/v1beta/changelog_pb.rb +26 -0
  26. data/lib/google/cloud/ces/v1beta/client_function_pb.rb +24 -0
  27. data/lib/google/cloud/ces/v1beta/common_pb.rb +46 -0
  28. data/lib/google/cloud/ces/v1beta/connector_tool_pb.rb +27 -0
  29. data/lib/google/cloud/ces/v1beta/connector_toolset_pb.rb +25 -0
  30. data/lib/google/cloud/ces/v1beta/conversation_pb.rb +31 -0
  31. data/lib/google/cloud/ces/v1beta/data_store_pb.rb +27 -0
  32. data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +40 -0
  33. data/lib/google/cloud/ces/v1beta/deployment_pb.rb +30 -0
  34. data/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb +31 -0
  35. data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +99 -0
  36. data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +4050 -0
  37. data/lib/google/cloud/ces/v1beta/evaluation_service/credentials.rb +48 -0
  38. data/lib/google/cloud/ces/v1beta/evaluation_service/operations.rb +843 -0
  39. data/lib/google/cloud/ces/v1beta/evaluation_service/paths.rb +306 -0
  40. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +3770 -0
  41. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/operations.rb +927 -0
  42. data/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb +2233 -0
  43. data/lib/google/cloud/ces/v1beta/evaluation_service/rest.rb +54 -0
  44. data/lib/google/cloud/ces/v1beta/evaluation_service.rb +56 -0
  45. data/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb +93 -0
  46. data/lib/google/cloud/ces/v1beta/evaluation_service_services_pb.rb +116 -0
  47. data/lib/google/cloud/ces/v1beta/example_pb.rb +34 -0
  48. data/lib/google/cloud/ces/v1beta/fakes_pb.rb +25 -0
  49. data/lib/google/cloud/ces/v1beta/file_context_pb.rb +24 -0
  50. data/lib/google/cloud/ces/v1beta/file_search_tool_pb.rb +24 -0
  51. data/lib/google/cloud/ces/v1beta/golden_run_pb.rb +21 -0
  52. data/lib/google/cloud/ces/v1beta/google_search_tool_pb.rb +24 -0
  53. data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +37 -0
  54. data/lib/google/cloud/ces/v1beta/mcp_tool_pb.rb +27 -0
  55. data/lib/google/cloud/ces/v1beta/mcp_toolset_pb.rb +28 -0
  56. data/lib/google/cloud/ces/v1beta/mocks_pb.rb +26 -0
  57. data/lib/google/cloud/ces/v1beta/omnichannel_pb.rb +31 -0
  58. data/lib/google/cloud/ces/v1beta/omnichannel_service_pb.rb +27 -0
  59. data/lib/google/cloud/ces/v1beta/open_api_tool_pb.rb +25 -0
  60. data/lib/google/cloud/ces/v1beta/open_api_toolset_pb.rb +25 -0
  61. data/lib/google/cloud/ces/v1beta/python_function_pb.rb +24 -0
  62. data/lib/google/cloud/ces/v1beta/rest.rb +42 -0
  63. data/lib/google/cloud/ces/v1beta/schema_pb.rb +25 -0
  64. data/lib/google/cloud/ces/v1beta/search_suggestions_pb.rb +22 -0
  65. data/lib/google/cloud/ces/v1beta/security_settings_pb.rb +27 -0
  66. data/lib/google/cloud/ces/v1beta/session_service/client.rb +762 -0
  67. data/lib/google/cloud/ces/v1beta/session_service/credentials.rb +48 -0
  68. data/lib/google/cloud/ces/v1beta/session_service/paths.rb +117 -0
  69. data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +562 -0
  70. data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +199 -0
  71. data/lib/google/cloud/ces/v1beta/session_service/rest.rb +53 -0
  72. data/lib/google/cloud/ces/v1beta/session_service.rb +55 -0
  73. data/lib/google/cloud/ces/v1beta/session_service_pb.rb +54 -0
  74. data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +120 -0
  75. data/lib/google/cloud/ces/v1beta/system_tool_pb.rb +23 -0
  76. data/lib/google/cloud/ces/v1beta/tool_pb.rb +40 -0
  77. data/lib/google/cloud/ces/v1beta/tool_service/client.rb +733 -0
  78. data/lib/google/cloud/ces/v1beta/tool_service/credentials.rb +48 -0
  79. data/lib/google/cloud/ces/v1beta/tool_service/paths.rb +94 -0
  80. data/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb +677 -0
  81. data/lib/google/cloud/ces/v1beta/tool_service/rest/service_stub.rb +267 -0
  82. data/lib/google/cloud/ces/v1beta/tool_service/rest.rb +53 -0
  83. data/lib/google/cloud/ces/v1beta/tool_service.rb +55 -0
  84. data/lib/google/cloud/ces/v1beta/tool_service_pb.rb +37 -0
  85. data/lib/google/cloud/ces/v1beta/tool_service_services_pb.rb +50 -0
  86. data/lib/google/cloud/ces/v1beta/toolset_pb.rb +30 -0
  87. data/lib/google/cloud/ces/v1beta/toolset_tool_pb.rb +24 -0
  88. data/lib/google/cloud/ces/v1beta/version.rb +7 -2
  89. data/lib/google/cloud/ces/v1beta/widget_service/client.rb +503 -0
  90. data/lib/google/cloud/ces/v1beta/widget_service/credentials.rb +48 -0
  91. data/lib/google/cloud/ces/v1beta/widget_service/paths.rb +75 -0
  92. data/lib/google/cloud/ces/v1beta/widget_service/rest/client.rb +461 -0
  93. data/lib/google/cloud/ces/v1beta/widget_service/rest/service_stub.rb +143 -0
  94. data/lib/google/cloud/ces/v1beta/widget_service/rest.rb +53 -0
  95. data/lib/google/cloud/ces/v1beta/widget_service.rb +55 -0
  96. data/lib/google/cloud/ces/v1beta/widget_service_pb.rb +28 -0
  97. data/lib/google/cloud/ces/v1beta/widget_service_services_pb.rb +46 -0
  98. data/lib/google/cloud/ces/v1beta/widget_tool_pb.rb +31 -0
  99. data/lib/google/cloud/ces/v1beta.rb +49 -0
  100. data/lib/google-cloud-ces-v1beta.rb +21 -0
  101. data/proto_docs/README.md +4 -0
  102. data/proto_docs/google/api/client.rb +593 -0
  103. data/proto_docs/google/api/field_behavior.rb +85 -0
  104. data/proto_docs/google/api/launch_stage.rb +71 -0
  105. data/proto_docs/google/api/resource.rb +227 -0
  106. data/proto_docs/google/cloud/ces/v1beta/agent.rb +233 -0
  107. data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +122 -0
  108. data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +1682 -0
  109. data/proto_docs/google/cloud/ces/v1beta/agent_tool.rb +48 -0
  110. data/proto_docs/google/cloud/ces/v1beta/agent_transfers.rb +111 -0
  111. data/proto_docs/google/cloud/ces/v1beta/app.rb +883 -0
  112. data/proto_docs/google/cloud/ces/v1beta/app_version.rb +83 -0
  113. data/proto_docs/google/cloud/ces/v1beta/auth.rb +214 -0
  114. data/proto_docs/google/cloud/ces/v1beta/bigquery_export.rb +45 -0
  115. data/proto_docs/google/cloud/ces/v1beta/changelog.rb +73 -0
  116. data/proto_docs/google/cloud/ces/v1beta/client_function.rb +48 -0
  117. data/proto_docs/google/cloud/ces/v1beta/common.rb +375 -0
  118. data/proto_docs/google/cloud/ces/v1beta/connector_tool.rb +122 -0
  119. data/proto_docs/google/cloud/ces/v1beta/connector_toolset.rb +52 -0
  120. data/proto_docs/google/cloud/ces/v1beta/conversation.rb +159 -0
  121. data/proto_docs/google/cloud/ces/v1beta/data_store.rb +102 -0
  122. data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +328 -0
  123. data/proto_docs/google/cloud/ces/v1beta/deployment.rb +123 -0
  124. data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +1687 -0
  125. data/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb +151 -0
  126. data/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb +1087 -0
  127. data/proto_docs/google/cloud/ces/v1beta/example.rb +245 -0
  128. data/proto_docs/google/cloud/ces/v1beta/fakes.rb +67 -0
  129. data/proto_docs/google/cloud/ces/v1beta/file_context.rb +50 -0
  130. data/proto_docs/google/cloud/ces/v1beta/file_search_tool.rb +60 -0
  131. data/proto_docs/google/cloud/ces/v1beta/golden_run.rb +40 -0
  132. data/proto_docs/google/cloud/ces/v1beta/google_search_tool.rb +76 -0
  133. data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +324 -0
  134. data/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb +110 -0
  135. data/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb +118 -0
  136. data/proto_docs/google/cloud/ces/v1beta/mocks.rb +60 -0
  137. data/proto_docs/google/cloud/ces/v1beta/omnichannel.rb +163 -0
  138. data/proto_docs/google/cloud/ces/v1beta/omnichannel_service.rb +45 -0
  139. data/proto_docs/google/cloud/ces/v1beta/open_api_tool.rb +66 -0
  140. data/proto_docs/google/cloud/ces/v1beta/open_api_toolset.rb +57 -0
  141. data/proto_docs/google/cloud/ces/v1beta/python_function.rb +47 -0
  142. data/proto_docs/google/cloud/ces/v1beta/schema.rb +162 -0
  143. data/proto_docs/google/cloud/ces/v1beta/search_suggestions.rb +55 -0
  144. data/proto_docs/google/cloud/ces/v1beta/security_settings.rb +80 -0
  145. data/proto_docs/google/cloud/ces/v1beta/session_service.rb +493 -0
  146. data/proto_docs/google/cloud/ces/v1beta/system_tool.rb +38 -0
  147. data/proto_docs/google/cloud/ces/v1beta/tool.rb +136 -0
  148. data/proto_docs/google/cloud/ces/v1beta/tool_service.rb +185 -0
  149. data/proto_docs/google/cloud/ces/v1beta/toolset.rb +80 -0
  150. data/proto_docs/google/cloud/ces/v1beta/toolset_tool.rb +40 -0
  151. data/proto_docs/google/cloud/ces/v1beta/widget_service.rb +62 -0
  152. data/proto_docs/google/cloud/ces/v1beta/widget_tool.rb +182 -0
  153. data/proto_docs/google/longrunning/operations.rb +191 -0
  154. data/proto_docs/google/protobuf/any.rb +145 -0
  155. data/proto_docs/google/protobuf/duration.rb +98 -0
  156. data/proto_docs/google/protobuf/empty.rb +34 -0
  157. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  158. data/proto_docs/google/protobuf/struct.rb +108 -0
  159. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  160. data/proto_docs/google/rpc/status.rb +48 -0
  161. metadata +208 -9
@@ -0,0 +1,185 @@
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 V1beta
24
+ # Request message for
25
+ # {::Google::Cloud::Ces::V1beta::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::V1beta::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
+ # @!attribute [rw] mock_config
60
+ # @return [::Google::Cloud::Ces::V1beta::MockConfig]
61
+ # Optional. Mock configuration for the tool execution.
62
+ # If this field is set, tools that call other tools will be
63
+ # mocked based on the provided patterns and responses.
64
+ class ExecuteToolRequest
65
+ include ::Google::Protobuf::MessageExts
66
+ extend ::Google::Protobuf::MessageExts::ClassMethods
67
+ end
68
+
69
+ # Response message for
70
+ # {::Google::Cloud::Ces::V1beta::ToolService::Client#execute_tool ToolService.ExecuteTool}.
71
+ # @!attribute [rw] tool
72
+ # @return [::String]
73
+ # The name of the tool that got executed.
74
+ # Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
75
+ #
76
+ # 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.
77
+ # @!attribute [rw] toolset_tool
78
+ # @return [::Google::Cloud::Ces::V1beta::ToolsetTool]
79
+ # The toolset tool that got executed.
80
+ #
81
+ # 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.
82
+ # @!attribute [rw] response
83
+ # @return [::Google::Protobuf::Struct]
84
+ # The tool execution result in JSON object format.
85
+ # Use "output" key to specify tool response and "error" key to specify
86
+ # error details (if any). If "output" and "error" keys are not specified,
87
+ # then whole "response" is treated as tool execution result.
88
+ # @!attribute [rw] variables
89
+ # @return [::Google::Protobuf::Struct]
90
+ # The variable values at the end of the tool execution.
91
+ # @!attribute [rw] citations
92
+ # @return [::Google::Cloud::Ces::V1beta::Citations]
93
+ # Citations that provide the source information for the tool's execution.
94
+ # @!attribute [rw] google_search_suggestions
95
+ # @return [::Google::Cloud::Ces::V1beta::GoogleSearchSuggestions]
96
+ # The suggestions returned from Google Search as a result of invoking the
97
+ # Google Search Tool during the tool execution.
98
+ class ExecuteToolResponse
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # Request message for
104
+ # {::Google::Cloud::Ces::V1beta::ToolService::Client#retrieve_tool_schema ToolService.RetrieveToolSchema}.
105
+ # @!attribute [rw] tool
106
+ # @return [::String]
107
+ # Optional. The name of the tool to retrieve the schema for.
108
+ # Format:
109
+ # projects/\\{project}/locations/\\{location}/apps/\\{app}/tools/\\{tool}
110
+ #
111
+ # 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.
112
+ # @!attribute [rw] toolset_tool
113
+ # @return [::Google::Cloud::Ces::V1beta::ToolsetTool]
114
+ # Optional. The toolset tool to retrieve the schema for. Only one tool
115
+ # should match the predicate from the toolset. Otherwise, an error will be
116
+ # returned.
117
+ #
118
+ # 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.
119
+ # @!attribute [rw] parent
120
+ # @return [::String]
121
+ # Required. The resource name of the app which the tool/toolset belongs to.
122
+ # Format: `projects/{project}/locations/{location}/apps/{app}`
123
+ class RetrieveToolSchemaRequest
124
+ include ::Google::Protobuf::MessageExts
125
+ extend ::Google::Protobuf::MessageExts::ClassMethods
126
+ end
127
+
128
+ # Response message for
129
+ # {::Google::Cloud::Ces::V1beta::ToolService::Client#retrieve_tool_schema ToolService.RetrieveToolSchema}.
130
+ # @!attribute [rw] tool
131
+ # @return [::String]
132
+ # The name of the tool that the schema is for.
133
+ # Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
134
+ #
135
+ # 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.
136
+ # @!attribute [rw] toolset_tool
137
+ # @return [::Google::Cloud::Ces::V1beta::ToolsetTool]
138
+ # The toolset tool that the schema is for.
139
+ #
140
+ # 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.
141
+ # @!attribute [rw] input_schema
142
+ # @return [::Google::Cloud::Ces::V1beta::Schema]
143
+ # The schema of the tool input parameters.
144
+ # @!attribute [rw] output_schema
145
+ # @return [::Google::Cloud::Ces::V1beta::Schema]
146
+ # The schema of the tool output parameters.
147
+ class RetrieveToolSchemaResponse
148
+ include ::Google::Protobuf::MessageExts
149
+ extend ::Google::Protobuf::MessageExts::ClassMethods
150
+ end
151
+
152
+ # Request message for
153
+ # {::Google::Cloud::Ces::V1beta::ToolService::Client#retrieve_tools ToolService.RetrieveTools}.
154
+ # @!attribute [rw] toolset
155
+ # @return [::String]
156
+ # Required. The name of the toolset to retrieve the tools for.
157
+ # Format:
158
+ # `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
159
+ # @!attribute [rw] tool_ids
160
+ # @return [::Array<::String>]
161
+ # Optional. The identifiers of the tools to retrieve from the toolset.
162
+ # If empty, all tools in the toolset will be returned.
163
+ # @!attribute [rw] bypass_persistence_config
164
+ # @return [::Boolean]
165
+ # Optional. If true, the returned tools will contain raw descriptions and
166
+ # schemas directly from the server, bypassing any stored persistence
167
+ # configurations (overrides/snapshots).
168
+ class RetrieveToolsRequest
169
+ include ::Google::Protobuf::MessageExts
170
+ extend ::Google::Protobuf::MessageExts::ClassMethods
171
+ end
172
+
173
+ # Response message for
174
+ # {::Google::Cloud::Ces::V1beta::ToolService::Client#retrieve_tools ToolService.RetrieveTools}.
175
+ # @!attribute [rw] tools
176
+ # @return [::Array<::Google::Cloud::Ces::V1beta::Tool>]
177
+ # The list of tools that are included in the specified toolset.
178
+ class RetrieveToolsResponse
179
+ include ::Google::Protobuf::MessageExts
180
+ extend ::Google::Protobuf::MessageExts::ClassMethods
181
+ end
182
+ end
183
+ end
184
+ end
185
+ 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 V1beta
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::V1beta::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::V1beta::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::V1beta::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::V1beta::ExecutionType]
69
+ # Optional. The execution type of the tools in the toolset.
70
+ # @!attribute [rw] tool_fake_config
71
+ # @return [::Google::Cloud::Ces::V1beta::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 V1beta
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 V1beta
24
+ # Request message for
25
+ # {::Google::Cloud::Ces::V1beta::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::V1beta::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,182 @@
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 V1beta
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::V1beta::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::V1beta::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::V1beta::WidgetTool::DataMapping]
46
+ # Optional. The mapping that defines how data from a source tool is mapped to
47
+ # the widget's input parameters.
48
+ # @!attribute [rw] text_response_config
49
+ # @return [::Google::Cloud::Ces::V1beta::WidgetTool::TextResponseConfig]
50
+ # Optional. Configuration for always-included text responses.
51
+ class WidgetTool
52
+ include ::Google::Protobuf::MessageExts
53
+ extend ::Google::Protobuf::MessageExts::ClassMethods
54
+
55
+ # Configuration for the text response returned with the widget.
56
+ # @!attribute [rw] type
57
+ # @return [::Google::Cloud::Ces::V1beta::WidgetTool::TextResponseConfig::Type]
58
+ # Optional. The strategy for providing the text response.
59
+ # @!attribute [rw] static_text
60
+ # @return [::String]
61
+ # Optional. The static text response to return when type is STATIC.
62
+ # @!attribute [rw] text_response_instruction
63
+ # @return [::String]
64
+ # Optional. Instruction for the LLM on how to generate the text response.
65
+ # Used as the description for the text response parameter if type is
66
+ # LLM_GENERATED.
67
+ class TextResponseConfig
68
+ include ::Google::Protobuf::MessageExts
69
+ extend ::Google::Protobuf::MessageExts::ClassMethods
70
+
71
+ # Defines how the text response is produced.
72
+ module Type
73
+ # Unspecified type.
74
+ TYPE_UNSPECIFIED = 0
75
+
76
+ # The LLM dynamically decides whether to generate a text response
77
+ # alongside the widget based on the conversation context.
78
+ NONE = 1
79
+
80
+ # The LLM is explicitly required to generate a text response.
81
+ LLM_GENERATED = 2
82
+
83
+ # A pre-defined static text response is always used.
84
+ STATIC = 3
85
+ end
86
+ end
87
+
88
+ # Configuration for mapping data from a source tool to the widget's input
89
+ # parameters.
90
+ # @!attribute [rw] source_tool_name
91
+ # @return [::String]
92
+ # Optional. The resource name of the tool that provides the data for the
93
+ # widget (e.g., a search tool or a custom function). Format:
94
+ # `projects/{project}/locations/{location}/agents/{agent}/tools/{tool}`
95
+ # @!attribute [rw] field_mappings
96
+ # @return [::Google::Protobuf::Map{::String => ::String}]
97
+ # Optional. A map of widget input parameter fields to the corresponding
98
+ # output fields of the source tool.
99
+ # @!attribute [rw] python_function
100
+ # @return [::Google::Cloud::Ces::V1beta::PythonFunction]
101
+ # Optional. Configuration for a Python function used to transform the
102
+ # source tool's output into the widget's input format.
103
+ # @!attribute [rw] mode
104
+ # @return [::Google::Cloud::Ces::V1beta::WidgetTool::DataMapping::Mode]
105
+ # Optional. The mode of the data mapping.
106
+ # @!attribute [rw] python_script
107
+ # @deprecated This field is deprecated and may be removed in the next major version update.
108
+ # @return [::String]
109
+ # Deprecated: Use `python_function` instead.
110
+ class DataMapping
111
+ include ::Google::Protobuf::MessageExts
112
+ extend ::Google::Protobuf::MessageExts::ClassMethods
113
+
114
+ # @!attribute [rw] key
115
+ # @return [::String]
116
+ # @!attribute [rw] value
117
+ # @return [::String]
118
+ class FieldMappingsEntry
119
+ include ::Google::Protobuf::MessageExts
120
+ extend ::Google::Protobuf::MessageExts::ClassMethods
121
+ end
122
+
123
+ # The strategy used to map data from the source tool to the widget.
124
+ module Mode
125
+ # Unspecified mode.
126
+ MODE_UNSPECIFIED = 0
127
+
128
+ # Use the `field_mappings` map for data transformation.
129
+ FIELD_MAPPING = 1
130
+
131
+ # Use the `python_script` for data transformation.
132
+ PYTHON_SCRIPT = 2
133
+ end
134
+ end
135
+
136
+ # All available widget types.
137
+ # New values may be added to this enum in the future.
138
+ module WidgetType
139
+ # Unspecified widget type.
140
+ WIDGET_TYPE_UNSPECIFIED = 0
141
+
142
+ # Custom widget type.
143
+ CUSTOM = 1
144
+
145
+ # Product carousel widget.
146
+ PRODUCT_CAROUSEL = 2
147
+
148
+ # Product details widget.
149
+ PRODUCT_DETAILS = 3
150
+
151
+ # Quick actions widget.
152
+ QUICK_ACTIONS = 4
153
+
154
+ # Product comparison widget.
155
+ PRODUCT_COMPARISON = 5
156
+
157
+ # Advanced product details widget.
158
+ ADVANCED_PRODUCT_DETAILS = 6
159
+
160
+ # Short form widget.
161
+ SHORT_FORM = 7
162
+
163
+ # Overall satisfaction widget.
164
+ OVERALL_SATISFACTION = 8
165
+
166
+ # Order summary widget.
167
+ ORDER_SUMMARY = 9
168
+
169
+ # Appointment details widget.
170
+ APPOINTMENT_DETAILS = 10
171
+
172
+ # Appointment scheduler widget.
173
+ APPOINTMENT_SCHEDULER = 11
174
+
175
+ # Contact form widget.
176
+ CONTACT_FORM = 12
177
+ end
178
+ end
179
+ end
180
+ end
181
+ end
182
+ end