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,244 @@
|
|
|
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
|
+
# 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::V1::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::V1::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 {::Google::Cloud::Ces::V1::Example example}.
|
|
77
|
+
class Message
|
|
78
|
+
include ::Google::Protobuf::MessageExts
|
|
79
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# A chunk of content within a message.
|
|
83
|
+
# @!attribute [rw] text
|
|
84
|
+
# @return [::String]
|
|
85
|
+
# Optional. Text data.
|
|
86
|
+
#
|
|
87
|
+
# 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.
|
|
88
|
+
# @!attribute [rw] transcript
|
|
89
|
+
# @return [::String]
|
|
90
|
+
# Optional. Transcript associated with the audio.
|
|
91
|
+
#
|
|
92
|
+
# 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.
|
|
93
|
+
# @!attribute [rw] blob
|
|
94
|
+
# @return [::Google::Cloud::Ces::V1::Blob]
|
|
95
|
+
# Optional. Blob data.
|
|
96
|
+
#
|
|
97
|
+
# 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.
|
|
98
|
+
# @!attribute [rw] payload
|
|
99
|
+
# @return [::Google::Protobuf::Struct]
|
|
100
|
+
# Optional. Custom payload data.
|
|
101
|
+
#
|
|
102
|
+
# 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.
|
|
103
|
+
# @!attribute [rw] image
|
|
104
|
+
# @return [::Google::Cloud::Ces::V1::Image]
|
|
105
|
+
# Optional. Image data.
|
|
106
|
+
#
|
|
107
|
+
# 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.
|
|
108
|
+
# @!attribute [rw] tool_call
|
|
109
|
+
# @return [::Google::Cloud::Ces::V1::ToolCall]
|
|
110
|
+
# Optional. Tool execution request.
|
|
111
|
+
#
|
|
112
|
+
# 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.
|
|
113
|
+
# @!attribute [rw] tool_response
|
|
114
|
+
# @return [::Google::Cloud::Ces::V1::ToolResponse]
|
|
115
|
+
# Optional. Tool execution response.
|
|
116
|
+
#
|
|
117
|
+
# 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.
|
|
118
|
+
# @!attribute [rw] agent_transfer
|
|
119
|
+
# @return [::Google::Cloud::Ces::V1::AgentTransfer]
|
|
120
|
+
# Optional. Agent transfer event.
|
|
121
|
+
#
|
|
122
|
+
# 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.
|
|
123
|
+
# @!attribute [rw] updated_variables
|
|
124
|
+
# @return [::Google::Protobuf::Struct]
|
|
125
|
+
# A struct represents variables that were updated in the conversation,
|
|
126
|
+
# keyed by variable names.
|
|
127
|
+
#
|
|
128
|
+
# 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.
|
|
129
|
+
# @!attribute [rw] default_variables
|
|
130
|
+
# @return [::Google::Protobuf::Struct]
|
|
131
|
+
# A struct represents default variables at the start of the conversation,
|
|
132
|
+
# keyed by variable names.
|
|
133
|
+
#
|
|
134
|
+
# 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.
|
|
135
|
+
class Chunk
|
|
136
|
+
include ::Google::Protobuf::MessageExts
|
|
137
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Represents a blob input or output in the conversation.
|
|
141
|
+
# @!attribute [rw] mime_type
|
|
142
|
+
# @return [::String]
|
|
143
|
+
# Required. The IANA standard MIME type of the source data.
|
|
144
|
+
# @!attribute [rw] data
|
|
145
|
+
# @return [::String]
|
|
146
|
+
# Required. Raw bytes of the blob.
|
|
147
|
+
class Blob
|
|
148
|
+
include ::Google::Protobuf::MessageExts
|
|
149
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Represents an image input or output in the conversation.
|
|
153
|
+
# @!attribute [rw] mime_type
|
|
154
|
+
# @return [::String]
|
|
155
|
+
# Required. The IANA standard MIME type of the source data.
|
|
156
|
+
# Supported image types includes:
|
|
157
|
+
# * image/png
|
|
158
|
+
# * image/jpeg
|
|
159
|
+
# * image/webp
|
|
160
|
+
# @!attribute [rw] data
|
|
161
|
+
# @return [::String]
|
|
162
|
+
# Required. Raw bytes of the image.
|
|
163
|
+
class Image
|
|
164
|
+
include ::Google::Protobuf::MessageExts
|
|
165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Request for the client or the agent to execute the specified tool.
|
|
169
|
+
# @!attribute [rw] tool
|
|
170
|
+
# @return [::String]
|
|
171
|
+
# Optional. The name of the tool to execute.
|
|
172
|
+
# Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
|
|
173
|
+
#
|
|
174
|
+
# 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.
|
|
175
|
+
# @!attribute [rw] toolset_tool
|
|
176
|
+
# @return [::Google::Cloud::Ces::V1::ToolsetTool]
|
|
177
|
+
# Optional. The toolset tool to execute.
|
|
178
|
+
#
|
|
179
|
+
# 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.
|
|
180
|
+
# @!attribute [rw] id
|
|
181
|
+
# @return [::String]
|
|
182
|
+
# Optional. The unique identifier of the tool call. If populated, the client
|
|
183
|
+
# should return the execution result with the matching ID in
|
|
184
|
+
# {::Google::Cloud::Ces::V1::ToolResponse#id ToolResponse}.
|
|
185
|
+
# @!attribute [r] display_name
|
|
186
|
+
# @return [::String]
|
|
187
|
+
# Output only. Display name of the tool.
|
|
188
|
+
# @!attribute [rw] args
|
|
189
|
+
# @return [::Google::Protobuf::Struct]
|
|
190
|
+
# Optional. The input parameters and values for the tool in JSON object
|
|
191
|
+
# format.
|
|
192
|
+
class ToolCall
|
|
193
|
+
include ::Google::Protobuf::MessageExts
|
|
194
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# The execution result of a specific tool from the client or the agent.
|
|
198
|
+
# @!attribute [rw] tool
|
|
199
|
+
# @return [::String]
|
|
200
|
+
# Optional. The name of the tool to execute.
|
|
201
|
+
# Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
|
|
202
|
+
#
|
|
203
|
+
# 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.
|
|
204
|
+
# @!attribute [rw] toolset_tool
|
|
205
|
+
# @return [::Google::Cloud::Ces::V1::ToolsetTool]
|
|
206
|
+
# Optional. The toolset tool that got executed.
|
|
207
|
+
#
|
|
208
|
+
# 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.
|
|
209
|
+
# @!attribute [rw] id
|
|
210
|
+
# @return [::String]
|
|
211
|
+
# Optional. The matching ID of the {::Google::Cloud::Ces::V1::ToolCall tool call}
|
|
212
|
+
# the response is for.
|
|
213
|
+
# @!attribute [r] display_name
|
|
214
|
+
# @return [::String]
|
|
215
|
+
# Output only. Display name of the tool.
|
|
216
|
+
# @!attribute [rw] response
|
|
217
|
+
# @return [::Google::Protobuf::Struct]
|
|
218
|
+
# Required. The tool execution result in JSON object format.
|
|
219
|
+
# Use "output" key to specify tool response and "error" key to specify
|
|
220
|
+
# error details (if any). If "output" and "error" keys are not specified,
|
|
221
|
+
# then whole "response" is treated as tool execution result.
|
|
222
|
+
class ToolResponse
|
|
223
|
+
include ::Google::Protobuf::MessageExts
|
|
224
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Represents an event indicating the transfer of a conversation to a different
|
|
228
|
+
# agent.
|
|
229
|
+
# @!attribute [rw] target_agent
|
|
230
|
+
# @return [::String]
|
|
231
|
+
# Required. The agent to which the conversation is being transferred. The
|
|
232
|
+
# agent will handle the conversation from this point forward. Format:
|
|
233
|
+
# `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
|
|
234
|
+
# @!attribute [r] display_name
|
|
235
|
+
# @return [::String]
|
|
236
|
+
# Output only. Display name of the agent.
|
|
237
|
+
class AgentTransfer
|
|
238
|
+
include ::Google::Protobuf::MessageExts
|
|
239
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
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 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::V1::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
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
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 V1
|
|
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::V1::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,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 V1
|
|
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::V1::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
|