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,152 @@
|
|
|
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 conversation represents an interaction between an end user and the CES app.
|
|
25
|
+
# @!attribute [rw] name
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Identifier. The unique identifier of the conversation.
|
|
28
|
+
# Format:
|
|
29
|
+
# `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}`
|
|
30
|
+
# @!attribute [r] start_time
|
|
31
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
32
|
+
# Output only. Timestamp when the conversation was created.
|
|
33
|
+
# @!attribute [r] end_time
|
|
34
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
35
|
+
# Output only. Timestamp when the conversation was completed.
|
|
36
|
+
# @!attribute [rw] turns
|
|
37
|
+
# @return [::Array<::Google::Cloud::Ces::V1::Conversation::Turn>]
|
|
38
|
+
# Required. The turns in the conversation.
|
|
39
|
+
# @!attribute [r] turn_count
|
|
40
|
+
# @return [::Integer]
|
|
41
|
+
# Output only. The number of turns in the conversation.
|
|
42
|
+
# @!attribute [rw] channel_type
|
|
43
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
44
|
+
# @return [::Google::Cloud::Ces::V1::Conversation::ChannelType]
|
|
45
|
+
# DEPRECATED. Please use
|
|
46
|
+
# {::Google::Cloud::Ces::V1::Conversation#input_types input_types} instead.
|
|
47
|
+
# @!attribute [r] source
|
|
48
|
+
# @return [::Google::Cloud::Ces::V1::Conversation::Source]
|
|
49
|
+
# Output only. Indicate the source of the conversation.
|
|
50
|
+
# @!attribute [r] input_types
|
|
51
|
+
# @return [::Array<::Google::Cloud::Ces::V1::Conversation::InputType>]
|
|
52
|
+
# Output only. The input types of the conversation.
|
|
53
|
+
# @!attribute [r] entry_agent
|
|
54
|
+
# @return [::String]
|
|
55
|
+
# Output only. The agent that initially handles the conversation. If not
|
|
56
|
+
# specified, the conversation is handled by the root agent. Format:
|
|
57
|
+
# `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
|
|
58
|
+
# @!attribute [r] deployment
|
|
59
|
+
# @return [::String]
|
|
60
|
+
# Output only. The deployment of the app used for processing the
|
|
61
|
+
# conversation. Format:
|
|
62
|
+
# `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
|
|
63
|
+
# @!attribute [r] app_version
|
|
64
|
+
# @return [::String]
|
|
65
|
+
# Output only. The version of the app used for processing the conversation.
|
|
66
|
+
# Format:
|
|
67
|
+
# `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
|
|
68
|
+
# @!attribute [r] language_code
|
|
69
|
+
# @return [::String]
|
|
70
|
+
# Output only. The language code of the conversation.
|
|
71
|
+
# @!attribute [rw] messages
|
|
72
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
73
|
+
# @return [::Array<::Google::Cloud::Ces::V1::Message>]
|
|
74
|
+
# Deprecated. Use turns instead.
|
|
75
|
+
class Conversation
|
|
76
|
+
include ::Google::Protobuf::MessageExts
|
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
78
|
+
|
|
79
|
+
# All information about a single turn in the conversation.
|
|
80
|
+
# @!attribute [rw] messages
|
|
81
|
+
# @return [::Array<::Google::Cloud::Ces::V1::Message>]
|
|
82
|
+
# Optional. List of messages in the conversation turn, including user
|
|
83
|
+
# input, agent responses and intermediate events during the processing.
|
|
84
|
+
# @!attribute [rw] root_span
|
|
85
|
+
# @return [::Google::Cloud::Ces::V1::Span]
|
|
86
|
+
# Optional. The root span of the action processing.
|
|
87
|
+
class Turn
|
|
88
|
+
include ::Google::Protobuf::MessageExts
|
|
89
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# The channel type of the conversation.
|
|
93
|
+
module ChannelType
|
|
94
|
+
# Unspecified channel type.
|
|
95
|
+
CHANNEL_TYPE_UNSPECIFIED = 0
|
|
96
|
+
|
|
97
|
+
# The conversation only contains text messages between the end user and the
|
|
98
|
+
# agent.
|
|
99
|
+
TEXT = 1
|
|
100
|
+
|
|
101
|
+
# The conversation contains audio messages between the end user and the
|
|
102
|
+
# agent.
|
|
103
|
+
AUDIO = 2
|
|
104
|
+
|
|
105
|
+
# The conversation multi-modal messages (e.g. image) between the end user
|
|
106
|
+
# and the agent.
|
|
107
|
+
MULTIMODAL = 3
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# The source of the conversation.
|
|
111
|
+
module Source
|
|
112
|
+
# Unspecified source.
|
|
113
|
+
SOURCE_UNSPECIFIED = 0
|
|
114
|
+
|
|
115
|
+
# The conversation is from the live end user.
|
|
116
|
+
LIVE = 1
|
|
117
|
+
|
|
118
|
+
# The conversation is from the simulator.
|
|
119
|
+
SIMULATOR = 2
|
|
120
|
+
|
|
121
|
+
# The conversation is from the evaluation.
|
|
122
|
+
EVAL = 3
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Type of the input message.
|
|
126
|
+
module InputType
|
|
127
|
+
# Unspecified input type.
|
|
128
|
+
INPUT_TYPE_UNSPECIFIED = 0
|
|
129
|
+
|
|
130
|
+
# The input message is text.
|
|
131
|
+
INPUT_TYPE_TEXT = 1
|
|
132
|
+
|
|
133
|
+
# The input message is audio.
|
|
134
|
+
INPUT_TYPE_AUDIO = 2
|
|
135
|
+
|
|
136
|
+
# The input message is image.
|
|
137
|
+
INPUT_TYPE_IMAGE = 3
|
|
138
|
+
|
|
139
|
+
# The input message is blob file.
|
|
140
|
+
INPUT_TYPE_BLOB = 4
|
|
141
|
+
|
|
142
|
+
# The input message is client function tool response.
|
|
143
|
+
INPUT_TYPE_TOOL_RESPONSE = 5
|
|
144
|
+
|
|
145
|
+
# The input message are variables.
|
|
146
|
+
INPUT_TYPE_VARIABLES = 6
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
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 DataStore resource in Vertex AI Search.
|
|
25
|
+
# @!attribute [rw] name
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Required. Full resource name of the DataStore.
|
|
28
|
+
# Format:
|
|
29
|
+
# `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`
|
|
30
|
+
# @!attribute [r] type
|
|
31
|
+
# @return [::Google::Cloud::Ces::V1::DataStore::DataStoreType]
|
|
32
|
+
# Output only. The type of the data store. This field is readonly and
|
|
33
|
+
# populated by the server.
|
|
34
|
+
# @!attribute [r] document_processing_mode
|
|
35
|
+
# @return [::Google::Cloud::Ces::V1::DataStore::DocumentProcessingMode]
|
|
36
|
+
# Output only. The document processing mode for the data store connection.
|
|
37
|
+
# Only set for PUBLIC_WEB and UNSTRUCTURED data stores.
|
|
38
|
+
# @!attribute [r] display_name
|
|
39
|
+
# @return [::String]
|
|
40
|
+
# Output only. The display name of the data store.
|
|
41
|
+
# @!attribute [r] create_time
|
|
42
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
43
|
+
# Output only. Timestamp when the data store was created.
|
|
44
|
+
# @!attribute [r] connector_config
|
|
45
|
+
# @return [::Google::Cloud::Ces::V1::DataStore::ConnectorConfig]
|
|
46
|
+
# Output only. The connector config for the data store connection.
|
|
47
|
+
class DataStore
|
|
48
|
+
include ::Google::Protobuf::MessageExts
|
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
50
|
+
|
|
51
|
+
# The connector config for the data store connection.
|
|
52
|
+
# @!attribute [rw] collection
|
|
53
|
+
# @return [::String]
|
|
54
|
+
# Resource name of the collection the data store belongs to.
|
|
55
|
+
# @!attribute [rw] collection_display_name
|
|
56
|
+
# @return [::String]
|
|
57
|
+
# Display name of the collection the data store belongs to.
|
|
58
|
+
# @!attribute [rw] data_source
|
|
59
|
+
# @return [::String]
|
|
60
|
+
# The name of the data source.
|
|
61
|
+
# Example: `salesforce`, `jira`, `confluence`, `bigquery`.
|
|
62
|
+
class ConnectorConfig
|
|
63
|
+
include ::Google::Protobuf::MessageExts
|
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# The type of the data store.
|
|
68
|
+
module DataStoreType
|
|
69
|
+
# Not specified. This value indicates that the data store type is not
|
|
70
|
+
# specified, so it will not be used during search.
|
|
71
|
+
DATA_STORE_TYPE_UNSPECIFIED = 0
|
|
72
|
+
|
|
73
|
+
# A data store that contains public web content.
|
|
74
|
+
PUBLIC_WEB = 1
|
|
75
|
+
|
|
76
|
+
# A data store that contains unstructured private data.
|
|
77
|
+
UNSTRUCTURED = 2
|
|
78
|
+
|
|
79
|
+
# A data store that contains structured data used as FAQ.
|
|
80
|
+
FAQ = 3
|
|
81
|
+
|
|
82
|
+
# A data store that is a connector to a first-party or a third-party
|
|
83
|
+
# service.
|
|
84
|
+
CONNECTOR = 4
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# The document processing mode of the data store.
|
|
88
|
+
module DocumentProcessingMode
|
|
89
|
+
# Not specified.
|
|
90
|
+
DOCUMENT_PROCESSING_MODE_UNSPECIFIED = 0
|
|
91
|
+
|
|
92
|
+
# Documents are processed as documents.
|
|
93
|
+
DOCUMENTS = 1
|
|
94
|
+
|
|
95
|
+
# Documents are converted to chunks.
|
|
96
|
+
CHUNKS = 2
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,328 @@
|
|
|
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
|
+
# Tool to retrieve from Vertex AI Search datastore or engine for grounding.
|
|
25
|
+
# Accepts either a datastore or an engine, but not both.
|
|
26
|
+
# See Vertex AI Search:
|
|
27
|
+
# https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
|
|
28
|
+
# @!attribute [rw] data_store_source
|
|
29
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::DataStoreSource]
|
|
30
|
+
# Optional. Search within a single specific DataStore.
|
|
31
|
+
#
|
|
32
|
+
# Note: The following fields are mutually exclusive: `data_store_source`, `engine_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
33
|
+
# @!attribute [rw] engine_source
|
|
34
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::EngineSource]
|
|
35
|
+
# Optional. Search within an Engine (potentially across multiple
|
|
36
|
+
# DataStores).
|
|
37
|
+
#
|
|
38
|
+
# Note: The following fields are mutually exclusive: `engine_source`, `data_store_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
39
|
+
# @!attribute [rw] name
|
|
40
|
+
# @return [::String]
|
|
41
|
+
# Required. The data store tool name.
|
|
42
|
+
# @!attribute [rw] description
|
|
43
|
+
# @return [::String]
|
|
44
|
+
# Optional. The tool description.
|
|
45
|
+
# @!attribute [rw] boost_specs
|
|
46
|
+
# @return [::Array<::Google::Cloud::Ces::V1::DataStoreTool::BoostSpecs>]
|
|
47
|
+
# Optional. Boost specification to boost certain documents.
|
|
48
|
+
# @!attribute [rw] modality_configs
|
|
49
|
+
# @return [::Array<::Google::Cloud::Ces::V1::DataStoreTool::ModalityConfig>]
|
|
50
|
+
# Optional. The modality configs for the data store.
|
|
51
|
+
# @!attribute [rw] filter_parameter_behavior
|
|
52
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::FilterParameterBehavior]
|
|
53
|
+
# Optional. The filter parameter behavior.
|
|
54
|
+
class DataStoreTool
|
|
55
|
+
include ::Google::Protobuf::MessageExts
|
|
56
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
57
|
+
|
|
58
|
+
# Rewriter configuration.
|
|
59
|
+
# @!attribute [rw] model_settings
|
|
60
|
+
# @return [::Google::Cloud::Ces::V1::ModelSettings]
|
|
61
|
+
# Required. Configurations for the LLM model.
|
|
62
|
+
# @!attribute [rw] prompt
|
|
63
|
+
# @return [::String]
|
|
64
|
+
# Optional. The prompt definition. If not set, default prompt will be used.
|
|
65
|
+
# @!attribute [rw] disabled
|
|
66
|
+
# @return [::Boolean]
|
|
67
|
+
# Optional. Whether the rewriter is disabled.
|
|
68
|
+
class RewriterConfig
|
|
69
|
+
include ::Google::Protobuf::MessageExts
|
|
70
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Summarization configuration.
|
|
74
|
+
# @!attribute [rw] model_settings
|
|
75
|
+
# @return [::Google::Cloud::Ces::V1::ModelSettings]
|
|
76
|
+
# Optional. Configurations for the LLM model.
|
|
77
|
+
# @!attribute [rw] prompt
|
|
78
|
+
# @return [::String]
|
|
79
|
+
# Optional. The prompt definition. If not set, default prompt will be used.
|
|
80
|
+
# @!attribute [rw] disabled
|
|
81
|
+
# @return [::Boolean]
|
|
82
|
+
# Optional. Whether summarization is disabled.
|
|
83
|
+
class SummarizationConfig
|
|
84
|
+
include ::Google::Protobuf::MessageExts
|
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Grounding configuration.
|
|
89
|
+
# @!attribute [rw] grounding_level
|
|
90
|
+
# @return [::Float]
|
|
91
|
+
# Optional. The groundedness threshold of the answer based on the retrieved
|
|
92
|
+
# sources. The value has a configurable range of [1, 5]. The level is used
|
|
93
|
+
# to threshold the groundedness of the answer, meaning that all responses
|
|
94
|
+
# with a groundedness score below the threshold will fall back to returning
|
|
95
|
+
# relevant snippets only.
|
|
96
|
+
#
|
|
97
|
+
# For example, a level of 3 means that the groundedness score must be
|
|
98
|
+
# 3 or higher for the response to be returned.
|
|
99
|
+
# @!attribute [rw] disabled
|
|
100
|
+
# @return [::Boolean]
|
|
101
|
+
# Optional. Whether grounding is disabled.
|
|
102
|
+
class GroundingConfig
|
|
103
|
+
include ::Google::Protobuf::MessageExts
|
|
104
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Configuration for searching within a specific DataStore.
|
|
108
|
+
# @!attribute [rw] filter
|
|
109
|
+
# @return [::String]
|
|
110
|
+
# Optional. Filter specification for the DataStore.
|
|
111
|
+
# See:
|
|
112
|
+
# https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
|
|
113
|
+
# @!attribute [rw] data_store
|
|
114
|
+
# @return [::Google::Cloud::Ces::V1::DataStore]
|
|
115
|
+
# Optional. The data store.
|
|
116
|
+
class DataStoreSource
|
|
117
|
+
include ::Google::Protobuf::MessageExts
|
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Configuration for searching within an Engine, potentially targeting
|
|
122
|
+
# specific DataStores.
|
|
123
|
+
# @!attribute [rw] engine
|
|
124
|
+
# @return [::String]
|
|
125
|
+
# Required. Full resource name of the Engine.
|
|
126
|
+
# Format:
|
|
127
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
|
|
128
|
+
# @!attribute [rw] data_store_sources
|
|
129
|
+
# @return [::Array<::Google::Cloud::Ces::V1::DataStoreTool::DataStoreSource>]
|
|
130
|
+
# Optional. Use to target specific DataStores within the Engine.
|
|
131
|
+
# If empty, the search applies to all DataStores associated with the
|
|
132
|
+
# Engine.
|
|
133
|
+
# @!attribute [rw] filter
|
|
134
|
+
# @return [::String]
|
|
135
|
+
# Optional. A filter applied to the search across the Engine. Not relevant
|
|
136
|
+
# and not used if 'data_store_sources' is provided. See:
|
|
137
|
+
# https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata
|
|
138
|
+
class EngineSource
|
|
139
|
+
include ::Google::Protobuf::MessageExts
|
|
140
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Boost specifications to boost certain documents.
|
|
144
|
+
# For more information, please refer to
|
|
145
|
+
# https://cloud.google.com/generative-ai-app-builder/docs/boosting.
|
|
146
|
+
# @!attribute [rw] data_stores
|
|
147
|
+
# @return [::Array<::String>]
|
|
148
|
+
# Required. The Data Store where the boosting configuration is applied.
|
|
149
|
+
# Full resource name of DataStore, such as
|
|
150
|
+
# projects/\\{project}/locations/\\{location}/collections/\\{collection}/dataStores/\\{dataStore}.
|
|
151
|
+
# @!attribute [rw] spec
|
|
152
|
+
# @return [::Array<::Google::Cloud::Ces::V1::DataStoreTool::BoostSpec>]
|
|
153
|
+
# Required. A list of boosting specifications.
|
|
154
|
+
class BoostSpecs
|
|
155
|
+
include ::Google::Protobuf::MessageExts
|
|
156
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Boost specification to boost certain documents.
|
|
160
|
+
# @!attribute [rw] condition_boost_specs
|
|
161
|
+
# @return [::Array<::Google::Cloud::Ces::V1::DataStoreTool::BoostSpec::ConditionBoostSpec>]
|
|
162
|
+
# Required. A list of boosting specifications.
|
|
163
|
+
class BoostSpec
|
|
164
|
+
include ::Google::Protobuf::MessageExts
|
|
165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
166
|
+
|
|
167
|
+
# Boost specification for a condition.
|
|
168
|
+
# @!attribute [rw] condition
|
|
169
|
+
# @return [::String]
|
|
170
|
+
# Required. An expression which specifies a boost condition. The syntax
|
|
171
|
+
# is the same as filter expression syntax. Currently, the only supported
|
|
172
|
+
# condition is a list of BCP-47 lang codes. Example: To boost suggestions
|
|
173
|
+
# in languages en or fr: (lang_code: ANY("en", "fr"))
|
|
174
|
+
# @!attribute [rw] boost
|
|
175
|
+
# @return [::Float]
|
|
176
|
+
# Optional. Strength of the boost, which should be in [-1, 1]. Negative
|
|
177
|
+
# boost means demotion. Default is 0.0.
|
|
178
|
+
#
|
|
179
|
+
# Setting to 1.0 gives the suggestions a big promotion. However, it does
|
|
180
|
+
# not necessarily mean that the top result will be a boosted suggestion.
|
|
181
|
+
#
|
|
182
|
+
# Setting to -1.0 gives the suggestions a big demotion. However, other
|
|
183
|
+
# suggestions that are relevant might still be shown.
|
|
184
|
+
#
|
|
185
|
+
# Setting to 0.0 means no boost applied. The boosting condition is
|
|
186
|
+
# ignored.
|
|
187
|
+
# @!attribute [rw] boost_control_spec
|
|
188
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::BoostSpec::ConditionBoostSpec::BoostControlSpec]
|
|
189
|
+
# Optional. Complex specification for custom ranking based on customer
|
|
190
|
+
# defined attribute value.
|
|
191
|
+
class ConditionBoostSpec
|
|
192
|
+
include ::Google::Protobuf::MessageExts
|
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
194
|
+
|
|
195
|
+
# Specification for custom ranking based on customer specified attribute
|
|
196
|
+
# value. It provides more controls for customized ranking than the simple
|
|
197
|
+
# (condition, boost) combination above.
|
|
198
|
+
# @!attribute [rw] field_name
|
|
199
|
+
# @return [::String]
|
|
200
|
+
# Optional. The name of the field whose value will be used to determine
|
|
201
|
+
# the boost amount.
|
|
202
|
+
# @!attribute [rw] attribute_type
|
|
203
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::BoostSpec::ConditionBoostSpec::BoostControlSpec::AttributeType]
|
|
204
|
+
# Optional. The attribute type to be used to determine the boost
|
|
205
|
+
# amount. The attribute value can be derived from the field value of
|
|
206
|
+
# the specified field_name. In the case of numerical it is
|
|
207
|
+
# straightforward i.e. attribute_value = numerical_field_value. In the
|
|
208
|
+
# case of freshness however, attribute_value = (time.now() -
|
|
209
|
+
# datetime_field_value).
|
|
210
|
+
# @!attribute [rw] interpolation_type
|
|
211
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::BoostSpec::ConditionBoostSpec::BoostControlSpec::InterpolationType]
|
|
212
|
+
# Optional. The interpolation type to be applied to connect the control
|
|
213
|
+
# points listed below.
|
|
214
|
+
# @!attribute [rw] control_points
|
|
215
|
+
# @return [::Array<::Google::Cloud::Ces::V1::DataStoreTool::BoostSpec::ConditionBoostSpec::BoostControlSpec::ControlPoint>]
|
|
216
|
+
# Optional. The control points used to define the curve. The monotonic
|
|
217
|
+
# function (defined through the interpolation_type above) passes
|
|
218
|
+
# through the control points listed here.
|
|
219
|
+
class BoostControlSpec
|
|
220
|
+
include ::Google::Protobuf::MessageExts
|
|
221
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
222
|
+
|
|
223
|
+
# The control points used to define the curve. The curve defined
|
|
224
|
+
# through these control points can only be monotonically increasing
|
|
225
|
+
# or decreasing(constant values are acceptable).
|
|
226
|
+
# @!attribute [rw] attribute_value
|
|
227
|
+
# @return [::String]
|
|
228
|
+
# Optional. Can be one of:
|
|
229
|
+
# 1. The numerical field value.
|
|
230
|
+
# 2. The duration spec for freshness:
|
|
231
|
+
# The value must be formatted as an XSD `dayTimeDuration` value (a
|
|
232
|
+
# restricted subset of an ISO 8601 duration value). The pattern for
|
|
233
|
+
# this is: `[nD][T[nH][nM][nS]]`.
|
|
234
|
+
# @!attribute [rw] boost_amount
|
|
235
|
+
# @return [::Float]
|
|
236
|
+
# Optional. The value between -1 to 1 by which to boost the score if
|
|
237
|
+
# the attribute_value evaluates to the value specified above.
|
|
238
|
+
class ControlPoint
|
|
239
|
+
include ::Google::Protobuf::MessageExts
|
|
240
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# The attribute(or function) for which the custom ranking is to be
|
|
244
|
+
# applied.
|
|
245
|
+
module AttributeType
|
|
246
|
+
# Unspecified AttributeType.
|
|
247
|
+
ATTRIBUTE_TYPE_UNSPECIFIED = 0
|
|
248
|
+
|
|
249
|
+
# The value of the numerical field will be used to dynamically update
|
|
250
|
+
# the boost amount. In this case, the attribute_value (the x value)
|
|
251
|
+
# of the control point will be the actual value of the numerical
|
|
252
|
+
# field for which the boost_amount is specified.
|
|
253
|
+
NUMERICAL = 1
|
|
254
|
+
|
|
255
|
+
# For the freshness use case the attribute value will be the duration
|
|
256
|
+
# between the current time and the date in the datetime field
|
|
257
|
+
# specified. The value must be formatted as an XSD `dayTimeDuration`
|
|
258
|
+
# value (a restricted subset of an ISO 8601 duration value). The
|
|
259
|
+
# pattern for this is: `[nD][T[nH][nM][nS]]`.
|
|
260
|
+
# E.g. `5D`, `3DT12H30M`, `T24H`.
|
|
261
|
+
FRESHNESS = 2
|
|
262
|
+
end
|
|
263
|
+
|
|
264
|
+
# The interpolation type to be applied. Default will be linear
|
|
265
|
+
# (Piecewise Linear).
|
|
266
|
+
module InterpolationType
|
|
267
|
+
# Interpolation type is unspecified. In this case, it defaults to
|
|
268
|
+
# Linear.
|
|
269
|
+
INTERPOLATION_TYPE_UNSPECIFIED = 0
|
|
270
|
+
|
|
271
|
+
# Piecewise linear interpolation will be applied.
|
|
272
|
+
LINEAR = 1
|
|
273
|
+
end
|
|
274
|
+
end
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# If specified, will apply the given configuration for the specified
|
|
279
|
+
# modality.
|
|
280
|
+
# @!attribute [rw] modality_type
|
|
281
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::ModalityConfig::ModalityType]
|
|
282
|
+
# Required. The modality type.
|
|
283
|
+
# @!attribute [rw] rewriter_config
|
|
284
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::RewriterConfig]
|
|
285
|
+
# Optional. The rewriter config.
|
|
286
|
+
# @!attribute [rw] summarization_config
|
|
287
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::SummarizationConfig]
|
|
288
|
+
# Optional. The summarization config.
|
|
289
|
+
# @!attribute [rw] grounding_config
|
|
290
|
+
# @return [::Google::Cloud::Ces::V1::DataStoreTool::GroundingConfig]
|
|
291
|
+
# Optional. The grounding configuration.
|
|
292
|
+
class ModalityConfig
|
|
293
|
+
include ::Google::Protobuf::MessageExts
|
|
294
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
295
|
+
|
|
296
|
+
# The modality type.
|
|
297
|
+
module ModalityType
|
|
298
|
+
# Unspecified modality type.
|
|
299
|
+
MODALITY_TYPE_UNSPECIFIED = 0
|
|
300
|
+
|
|
301
|
+
# Text modality.
|
|
302
|
+
TEXT = 1
|
|
303
|
+
|
|
304
|
+
# Audio modality.
|
|
305
|
+
AUDIO = 2
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Filter parameter behavior.
|
|
310
|
+
module FilterParameterBehavior
|
|
311
|
+
# Default filter behavior.
|
|
312
|
+
# Include filter parameter for connector datastores.
|
|
313
|
+
# For the rest of the datastore types, the filter input parameter is
|
|
314
|
+
# omitted.
|
|
315
|
+
FILTER_PARAMETER_BEHAVIOR_UNSPECIFIED = 0
|
|
316
|
+
|
|
317
|
+
# Always include filter parameter for all datastore types.
|
|
318
|
+
ALWAYS_INCLUDE = 2
|
|
319
|
+
|
|
320
|
+
# The filter parameter is never included in the list of tool parameters,
|
|
321
|
+
# regardless of the datastore type.
|
|
322
|
+
NEVER_INCLUDE = 3
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
end
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Ces
|
|
23
|
+
module V1
|
|
24
|
+
# A deployment represents an immutable, queryable version of the app.
|
|
25
|
+
# It is used to deploy an app version with a specific channel profile.
|
|
26
|
+
# @!attribute [rw] name
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# Identifier. The resource name of the deployment.
|
|
29
|
+
# Format:
|
|
30
|
+
# `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}`
|
|
31
|
+
# @!attribute [rw] display_name
|
|
32
|
+
# @return [::String]
|
|
33
|
+
# Required. Display name of the deployment.
|
|
34
|
+
# @!attribute [rw] app_version
|
|
35
|
+
# @return [::String]
|
|
36
|
+
# Optional. The resource name of the app version to deploy.
|
|
37
|
+
# Format:
|
|
38
|
+
# `projects/{project}/locations/{location}/apps/{app}/versions/{version}`
|
|
39
|
+
# Use `projects/{project}/locations/{location}/apps/{app}/versions/-` to use
|
|
40
|
+
# the draft app.
|
|
41
|
+
# @!attribute [rw] channel_profile
|
|
42
|
+
# @return [::Google::Cloud::Ces::V1::ChannelProfile]
|
|
43
|
+
# Required. The channel profile used in the deployment.
|
|
44
|
+
# @!attribute [r] create_time
|
|
45
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
46
|
+
# Output only. Timestamp when this deployment was created.
|
|
47
|
+
# @!attribute [r] update_time
|
|
48
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
49
|
+
# Output only. Timestamp when this deployment was last updated.
|
|
50
|
+
# @!attribute [r] etag
|
|
51
|
+
# @return [::String]
|
|
52
|
+
# Output only. Etag used to ensure the object hasn't changed during a
|
|
53
|
+
# read-modify-write operation. If the etag is empty, the update will
|
|
54
|
+
# overwrite any concurrent changes.
|
|
55
|
+
class Deployment
|
|
56
|
+
include ::Google::Protobuf::MessageExts
|
|
57
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
end
|