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,245 @@
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
+ # An example represents a sample conversation between the user and the
25
+ # agent(s).
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Identifier. The unique identifier of the example.
29
+ # Format:
30
+ # `projects/{project}/locations/{location}/apps/{app}/examples/{example}`
31
+ # @!attribute [rw] display_name
32
+ # @return [::String]
33
+ # Required. Display name of the example.
34
+ # @!attribute [rw] description
35
+ # @return [::String]
36
+ # Optional. Human-readable description of the example.
37
+ # @!attribute [rw] entry_agent
38
+ # @return [::String]
39
+ # Optional. The agent that initially handles the conversation. If not
40
+ # specified, the example represents a conversation that is handled by the
41
+ # root agent. Format:
42
+ # `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
43
+ # @!attribute [rw] messages
44
+ # @return [::Array<::Google::Cloud::Ces::V1beta::Message>]
45
+ # Optional. The collection of messages that make up the conversation.
46
+ # @!attribute [r] create_time
47
+ # @return [::Google::Protobuf::Timestamp]
48
+ # Output only. Timestamp when the example was created.
49
+ # @!attribute [r] update_time
50
+ # @return [::Google::Protobuf::Timestamp]
51
+ # Output only. Timestamp when the example was last updated.
52
+ # @!attribute [r] invalid
53
+ # @return [::Boolean]
54
+ # Output only. The example may become invalid if referencing resources are
55
+ # deleted. Invalid examples will not be used as few-shot examples.
56
+ # @!attribute [rw] etag
57
+ # @return [::String]
58
+ # Etag used to ensure the object hasn't changed during a read-modify-write
59
+ # operation. If the etag is empty, the update will overwrite any concurrent
60
+ # changes.
61
+ class Example
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+ end
65
+
66
+ # A message within a conversation.
67
+ # @!attribute [rw] role
68
+ # @return [::String]
69
+ # Optional. The role within the conversation, e.g., user, agent.
70
+ # @!attribute [rw] chunks
71
+ # @return [::Array<::Google::Cloud::Ces::V1beta::Chunk>]
72
+ # Optional. Content of the message as a series of chunks.
73
+ # @!attribute [rw] event_time
74
+ # @return [::Google::Protobuf::Timestamp]
75
+ # Optional. Timestamp when the message was sent or received. Should not be
76
+ # used if the message is part of an
77
+ # {::Google::Cloud::Ces::V1beta::Example example}.
78
+ class Message
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+
83
+ # A chunk of content within a message.
84
+ # @!attribute [rw] text
85
+ # @return [::String]
86
+ # Optional. Text data.
87
+ #
88
+ # Note: The following fields are mutually exclusive: `text`, `transcript`, `blob`, `payload`, `image`, `tool_call`, `tool_response`, `agent_transfer`, `updated_variables`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
89
+ # @!attribute [rw] transcript
90
+ # @return [::String]
91
+ # Optional. Transcript associated with the audio.
92
+ #
93
+ # Note: The following fields are mutually exclusive: `transcript`, `text`, `blob`, `payload`, `image`, `tool_call`, `tool_response`, `agent_transfer`, `updated_variables`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
94
+ # @!attribute [rw] blob
95
+ # @return [::Google::Cloud::Ces::V1beta::Blob]
96
+ # Optional. Blob data.
97
+ #
98
+ # Note: The following fields are mutually exclusive: `blob`, `text`, `transcript`, `payload`, `image`, `tool_call`, `tool_response`, `agent_transfer`, `updated_variables`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
99
+ # @!attribute [rw] payload
100
+ # @return [::Google::Protobuf::Struct]
101
+ # Optional. Custom payload data.
102
+ #
103
+ # Note: The following fields are mutually exclusive: `payload`, `text`, `transcript`, `blob`, `image`, `tool_call`, `tool_response`, `agent_transfer`, `updated_variables`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
104
+ # @!attribute [rw] image
105
+ # @return [::Google::Cloud::Ces::V1beta::Image]
106
+ # Optional. Image data.
107
+ #
108
+ # Note: The following fields are mutually exclusive: `image`, `text`, `transcript`, `blob`, `payload`, `tool_call`, `tool_response`, `agent_transfer`, `updated_variables`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
109
+ # @!attribute [rw] tool_call
110
+ # @return [::Google::Cloud::Ces::V1beta::ToolCall]
111
+ # Optional. Tool execution request.
112
+ #
113
+ # Note: The following fields are mutually exclusive: `tool_call`, `text`, `transcript`, `blob`, `payload`, `image`, `tool_response`, `agent_transfer`, `updated_variables`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
114
+ # @!attribute [rw] tool_response
115
+ # @return [::Google::Cloud::Ces::V1beta::ToolResponse]
116
+ # Optional. Tool execution response.
117
+ #
118
+ # Note: The following fields are mutually exclusive: `tool_response`, `text`, `transcript`, `blob`, `payload`, `image`, `tool_call`, `agent_transfer`, `updated_variables`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
119
+ # @!attribute [rw] agent_transfer
120
+ # @return [::Google::Cloud::Ces::V1beta::AgentTransfer]
121
+ # Optional. Agent transfer event.
122
+ #
123
+ # Note: The following fields are mutually exclusive: `agent_transfer`, `text`, `transcript`, `blob`, `payload`, `image`, `tool_call`, `tool_response`, `updated_variables`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
124
+ # @!attribute [rw] updated_variables
125
+ # @return [::Google::Protobuf::Struct]
126
+ # A struct represents variables that were updated in the conversation,
127
+ # keyed by variable names.
128
+ #
129
+ # Note: The following fields are mutually exclusive: `updated_variables`, `text`, `transcript`, `blob`, `payload`, `image`, `tool_call`, `tool_response`, `agent_transfer`, `default_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
130
+ # @!attribute [rw] default_variables
131
+ # @return [::Google::Protobuf::Struct]
132
+ # A struct represents default variables at the start of the conversation,
133
+ # keyed by variable names.
134
+ #
135
+ # Note: The following fields are mutually exclusive: `default_variables`, `text`, `transcript`, `blob`, `payload`, `image`, `tool_call`, `tool_response`, `agent_transfer`, `updated_variables`. If a field in that set is populated, all other fields in the set will automatically be cleared.
136
+ class Chunk
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # Represents a blob input or output in the conversation.
142
+ # @!attribute [rw] mime_type
143
+ # @return [::String]
144
+ # Required. The IANA standard MIME type of the source data.
145
+ # @!attribute [rw] data
146
+ # @return [::String]
147
+ # Required. Raw bytes of the blob.
148
+ class Blob
149
+ include ::Google::Protobuf::MessageExts
150
+ extend ::Google::Protobuf::MessageExts::ClassMethods
151
+ end
152
+
153
+ # Represents an image input or output in the conversation.
154
+ # @!attribute [rw] mime_type
155
+ # @return [::String]
156
+ # Required. The IANA standard MIME type of the source data.
157
+ # Supported image types includes:
158
+ # * image/png
159
+ # * image/jpeg
160
+ # * image/webp
161
+ # @!attribute [rw] data
162
+ # @return [::String]
163
+ # Required. Raw bytes of the image.
164
+ class Image
165
+ include ::Google::Protobuf::MessageExts
166
+ extend ::Google::Protobuf::MessageExts::ClassMethods
167
+ end
168
+
169
+ # Request for the client or the agent to execute the specified tool.
170
+ # @!attribute [rw] tool
171
+ # @return [::String]
172
+ # Optional. The name of the tool to execute.
173
+ # Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
174
+ #
175
+ # 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.
176
+ # @!attribute [rw] toolset_tool
177
+ # @return [::Google::Cloud::Ces::V1beta::ToolsetTool]
178
+ # Optional. The toolset tool to execute.
179
+ #
180
+ # 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.
181
+ # @!attribute [rw] id
182
+ # @return [::String]
183
+ # Optional. The unique identifier of the tool call. If populated, the client
184
+ # should return the execution result with the matching ID in
185
+ # {::Google::Cloud::Ces::V1beta::ToolResponse#id ToolResponse}.
186
+ # @!attribute [r] display_name
187
+ # @return [::String]
188
+ # Output only. Display name of the tool.
189
+ # @!attribute [rw] args
190
+ # @return [::Google::Protobuf::Struct]
191
+ # Optional. The input parameters and values for the tool in JSON object
192
+ # format.
193
+ class ToolCall
194
+ include ::Google::Protobuf::MessageExts
195
+ extend ::Google::Protobuf::MessageExts::ClassMethods
196
+ end
197
+
198
+ # The execution result of a specific tool from the client or the agent.
199
+ # @!attribute [rw] tool
200
+ # @return [::String]
201
+ # Optional. The name of the tool to execute.
202
+ # Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
203
+ #
204
+ # 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.
205
+ # @!attribute [rw] toolset_tool
206
+ # @return [::Google::Cloud::Ces::V1beta::ToolsetTool]
207
+ # Optional. The toolset tool that got executed.
208
+ #
209
+ # 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.
210
+ # @!attribute [rw] id
211
+ # @return [::String]
212
+ # Optional. The matching ID of the [tool
213
+ # call][google.cloud.ces.v1beta.ToolCall] the response is for.
214
+ # @!attribute [r] display_name
215
+ # @return [::String]
216
+ # Output only. Display name of the tool.
217
+ # @!attribute [rw] response
218
+ # @return [::Google::Protobuf::Struct]
219
+ # Required. The tool execution result in JSON object format.
220
+ # Use "output" key to specify tool response and "error" key to specify
221
+ # error details (if any). If "output" and "error" keys are not specified,
222
+ # then whole "response" is treated as tool execution result.
223
+ class ToolResponse
224
+ include ::Google::Protobuf::MessageExts
225
+ extend ::Google::Protobuf::MessageExts::ClassMethods
226
+ end
227
+
228
+ # Represents an event indicating the transfer of a conversation to a different
229
+ # agent.
230
+ # @!attribute [rw] target_agent
231
+ # @return [::String]
232
+ # Required. The agent to which the conversation is being transferred. The
233
+ # agent will handle the conversation from this point forward. Format:
234
+ # `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
235
+ # @!attribute [r] display_name
236
+ # @return [::String]
237
+ # Output only. Display name of the agent.
238
+ class AgentTransfer
239
+ include ::Google::Protobuf::MessageExts
240
+ extend ::Google::Protobuf::MessageExts::ClassMethods
241
+ end
242
+ end
243
+ end
244
+ end
245
+ end
@@ -0,0 +1,67 @@
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 code block to be executed instead of a real tool call.
25
+ # @!attribute [rw] python_code
26
+ # @return [::String]
27
+ # Required. Python code which will be invoked in tool fake mode.
28
+ # Expected Python function signature -
29
+ # To catch all tool calls:
30
+ # def fake_tool_call(tool: Tool, input: dict[str, Any],
31
+ # callback_context: CallbackContext) -> Optional[dict[str, Any]]:
32
+ # To catch a specific tool call:
33
+ # def fake_\\{tool_id}(tool: Tool, input: dict[str, Any],
34
+ # callback_context: CallbackContext) -> Optional[dict[str, Any]]:
35
+ # If the function returns None, the real tool will be invoked instead.
36
+ class CodeBlock
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+
41
+ # Configuration for tool behavior in fake mode.
42
+ # @!attribute [rw] code_block
43
+ # @return [::Google::Cloud::Ces::V1beta::CodeBlock]
44
+ # Optional. Code block which will be executed instead of a real tool call.
45
+ # @!attribute [rw] enable_fake_mode
46
+ # @return [::Boolean]
47
+ # Optional. Whether the tool is using fake mode.
48
+ class ToolFakeConfig
49
+ include ::Google::Protobuf::MessageExts
50
+ extend ::Google::Protobuf::MessageExts::ClassMethods
51
+ end
52
+
53
+ # Configures the tool call behaviour for evaluation runs.
54
+ module EvaluationToolCallBehaviour
55
+ # Unspecified tool call behavior. Will default to real tool calls.
56
+ EVALUATION_TOOL_CALL_BEHAVIOUR_UNSPECIFIED = 0
57
+
58
+ # Use real tool calls.
59
+ REAL = 1
60
+
61
+ # Use fake tool calls.
62
+ FAKE = 2
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,50 @@
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
+ # Files to be used as context. Files can be provided as raw bytes.
25
+ # @!attribute [rw] file_bytes
26
+ # @return [::Google::Cloud::Ces::V1beta::FileContext::FileBytes]
27
+ # Optional. File provided as raw bytes.
28
+ class FileContext
29
+ include ::Google::Protobuf::MessageExts
30
+ extend ::Google::Protobuf::MessageExts::ClassMethods
31
+
32
+ # File provided as raw bytes.
33
+ # @!attribute [rw] file_name
34
+ # @return [::String]
35
+ # Required. The name of the file provided as raw bytes.
36
+ # @!attribute [rw] mime_type
37
+ # @return [::String]
38
+ # Required. The IANA standard MIME type of the source data.
39
+ # @!attribute [rw] data
40
+ # @return [::String]
41
+ # Required. Raw bytes of the file.
42
+ class FileBytes
43
+ include ::Google::Protobuf::MessageExts
44
+ extend ::Google::Protobuf::MessageExts::ClassMethods
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,60 @@
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
+ # The file search tool allows the agent to search across the files uploaded by
25
+ # the app/agent developer. It has presets to give relatively good quality
26
+ # search over the uploaded files and summarization of the retrieved results.
27
+ # @!attribute [rw] corpus_type
28
+ # @return [::Google::Cloud::Ces::V1beta::FileSearchTool::CorpusType]
29
+ # Optional. The type of the corpus. Default is FULLY_MANAGED.
30
+ # @!attribute [rw] name
31
+ # @return [::String]
32
+ # Required. The tool name.
33
+ # @!attribute [rw] description
34
+ # @return [::String]
35
+ # Optional. The tool description.
36
+ # @!attribute [rw] file_corpus
37
+ # @return [::String]
38
+ # Optional. The corpus where files are stored.
39
+ # Format:
40
+ # projects/\\{project}/locations/\\{location}/ragCorpora/\\{rag_corpus}
41
+ class FileSearchTool
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+
45
+ # The type of the Vertex RAG corpus.
46
+ module CorpusType
47
+ # Unspecified corpus type.
48
+ CORPUS_TYPE_UNSPECIFIED = 0
49
+
50
+ # The corpus is created and owned by the user.
51
+ USER_OWNED = 1
52
+
53
+ # The corpus is created by the agent.
54
+ FULLY_MANAGED = 2
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ 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
+ # The method used to run the evaluation.
25
+ module GoldenRunMethod
26
+ # Run method is not specified.
27
+ GOLDEN_RUN_METHOD_UNSPECIFIED = 0
28
+
29
+ # Run the evaluation as stable replay, where each turn is a unique session
30
+ # with the previous expected turns injected as context.
31
+ STABLE = 1
32
+
33
+ # Run the evaluation as naive replay, where the run is a single
34
+ # session with no context injected.
35
+ NAIVE = 2
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,76 @@
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 tool to perform Google web searches for grounding.
25
+ # See
26
+ # https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search.
27
+ # @!attribute [rw] name
28
+ # @return [::String]
29
+ # Required. The name of the tool.
30
+ # @!attribute [rw] description
31
+ # @return [::String]
32
+ # Optional. Description of the tool's purpose.
33
+ # @!attribute [rw] context_urls
34
+ # @return [::Array<::String>]
35
+ # Optional. Content will be fetched directly from these URLs for context and
36
+ # grounding. Example: "https://example.com/path.html". A maximum of 20 URLs
37
+ # are allowed.
38
+ # @!attribute [rw] preferred_domains
39
+ # @return [::Array<::String>]
40
+ # Optional. Specifies domains to restrict search results to.
41
+ # Example: "example.com", "another.site". A maximum of 20 domains can be
42
+ # specified.
43
+ # @!attribute [rw] exclude_domains
44
+ # @return [::Array<::String>]
45
+ # Optional. List of domains to be excluded from the search results.
46
+ # Example: "example.com".
47
+ # A maximum of 2000 domains can be excluded.
48
+ # @!attribute [rw] prompt_config
49
+ # @return [::Google::Cloud::Ces::V1beta::GoogleSearchTool::PromptConfig]
50
+ # Optional. Prompt instructions passed to planner on how the search results
51
+ # should be processed for text and voice.
52
+ class GoogleSearchTool
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+
56
+ # Prompt settings used by the model when processing or summarizing the
57
+ # google search results.
58
+ # @!attribute [rw] text_prompt
59
+ # @return [::String]
60
+ # Optional. Defines the prompt used for the system instructions when
61
+ # interacting with the agent in chat conversations. If not set, default
62
+ # prompt will be used.
63
+ # @!attribute [rw] voice_prompt
64
+ # @return [::String]
65
+ # Optional. Defines the prompt used for the system instructions when
66
+ # interacting with the agent in voice conversations. If not set, default
67
+ # prompt will be used.
68
+ class PromptConfig
69
+ include ::Google::Protobuf::MessageExts
70
+ extend ::Google::Protobuf::MessageExts::ClassMethods
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end
76
+ end