google-cloud-ces-v1beta 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/v1beta/agent_pb.rb +30 -0
- data/lib/google/cloud/ces/v1beta/agent_service/client.rb +5635 -0
- data/lib/google/cloud/ces/v1beta/agent_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/agent_service/operations.rb +841 -0
- data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +481 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +5243 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest/operations.rb +925 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest/service_stub.rb +3213 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest.rb +55 -0
- data/lib/google/cloud/ces/v1beta/agent_service.rb +57 -0
- data/lib/google/cloud/ces/v1beta/agent_service_pb.rb +131 -0
- data/lib/google/cloud/ces/v1beta/agent_service_services_pb.rb +148 -0
- data/lib/google/cloud/ces/v1beta/agent_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/agent_transfers_pb.rb +29 -0
- data/lib/google/cloud/ces/v1beta/app_pb.rb +67 -0
- data/lib/google/cloud/ces/v1beta/app_version_pb.rb +32 -0
- data/lib/google/cloud/ces/v1beta/auth_pb.rb +34 -0
- data/lib/google/cloud/ces/v1beta/bigquery_export_pb.rb +23 -0
- data/lib/google/cloud/ces/v1beta/bindings_override.rb +75 -0
- data/lib/google/cloud/ces/v1beta/changelog_pb.rb +26 -0
- data/lib/google/cloud/ces/v1beta/client_function_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/common_pb.rb +46 -0
- data/lib/google/cloud/ces/v1beta/connector_tool_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/connector_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/conversation_pb.rb +31 -0
- data/lib/google/cloud/ces/v1beta/data_store_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/data_store_tool_pb.rb +40 -0
- data/lib/google/cloud/ces/v1beta/deployment_pb.rb +26 -0
- data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +98 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +3732 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/operations.rb +841 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/paths.rb +306 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +3473 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/operations.rb +925 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb +2047 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest.rb +54 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service.rb +56 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service_pb.rb +86 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service_services_pb.rb +110 -0
- data/lib/google/cloud/ces/v1beta/example_pb.rb +34 -0
- data/lib/google/cloud/ces/v1beta/fakes_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/file_context_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/file_search_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/golden_run_pb.rb +21 -0
- data/lib/google/cloud/ces/v1beta/google_search_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/guardrail_pb.rb +37 -0
- data/lib/google/cloud/ces/v1beta/mcp_tool_pb.rb +26 -0
- data/lib/google/cloud/ces/v1beta/mcp_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/mocks_pb.rb +26 -0
- data/lib/google/cloud/ces/v1beta/omnichannel_pb.rb +31 -0
- data/lib/google/cloud/ces/v1beta/omnichannel_service_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/open_api_tool_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/open_api_toolset_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/python_function_pb.rb +23 -0
- data/lib/google/cloud/ces/v1beta/rest.rb +42 -0
- data/lib/google/cloud/ces/v1beta/schema_pb.rb +25 -0
- data/lib/google/cloud/ces/v1beta/search_suggestions_pb.rb +22 -0
- data/lib/google/cloud/ces/v1beta/security_settings_pb.rb +27 -0
- data/lib/google/cloud/ces/v1beta/session_service/client.rb +760 -0
- data/lib/google/cloud/ces/v1beta/session_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/session_service/paths.rb +117 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest/client.rb +560 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest/service_stub.rb +199 -0
- data/lib/google/cloud/ces/v1beta/session_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1beta/session_service.rb +55 -0
- data/lib/google/cloud/ces/v1beta/session_service_pb.rb +53 -0
- data/lib/google/cloud/ces/v1beta/session_service_services_pb.rb +120 -0
- data/lib/google/cloud/ces/v1beta/system_tool_pb.rb +23 -0
- data/lib/google/cloud/ces/v1beta/tool_pb.rb +38 -0
- data/lib/google/cloud/ces/v1beta/tool_service/client.rb +727 -0
- data/lib/google/cloud/ces/v1beta/tool_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/tool_service/paths.rb +94 -0
- data/lib/google/cloud/ces/v1beta/tool_service/rest/client.rb +671 -0
- data/lib/google/cloud/ces/v1beta/tool_service/rest/service_stub.rb +267 -0
- data/lib/google/cloud/ces/v1beta/tool_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1beta/tool_service.rb +55 -0
- data/lib/google/cloud/ces/v1beta/tool_service_pb.rb +36 -0
- data/lib/google/cloud/ces/v1beta/tool_service_services_pb.rb +50 -0
- data/lib/google/cloud/ces/v1beta/toolset_pb.rb +30 -0
- data/lib/google/cloud/ces/v1beta/toolset_tool_pb.rb +24 -0
- data/lib/google/cloud/ces/v1beta/version.rb +7 -2
- data/lib/google/cloud/ces/v1beta/widget_service/client.rb +501 -0
- data/lib/google/cloud/ces/v1beta/widget_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/widget_service/paths.rb +75 -0
- data/lib/google/cloud/ces/v1beta/widget_service/rest/client.rb +459 -0
- data/lib/google/cloud/ces/v1beta/widget_service/rest/service_stub.rb +143 -0
- data/lib/google/cloud/ces/v1beta/widget_service/rest.rb +53 -0
- data/lib/google/cloud/ces/v1beta/widget_service.rb +55 -0
- data/lib/google/cloud/ces/v1beta/widget_service_pb.rb +28 -0
- data/lib/google/cloud/ces/v1beta/widget_service_services_pb.rb +46 -0
- data/lib/google/cloud/ces/v1beta/widget_tool_pb.rb +29 -0
- data/lib/google/cloud/ces/v1beta.rb +49 -0
- data/lib/google-cloud-ces-v1beta.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/v1beta/agent.rb +224 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +1661 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_tool.rb +48 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_transfers.rb +111 -0
- data/proto_docs/google/cloud/ces/v1beta/app.rb +836 -0
- data/proto_docs/google/cloud/ces/v1beta/app_version.rb +83 -0
- data/proto_docs/google/cloud/ces/v1beta/auth.rb +214 -0
- data/proto_docs/google/cloud/ces/v1beta/bigquery_export.rb +45 -0
- data/proto_docs/google/cloud/ces/v1beta/changelog.rb +73 -0
- data/proto_docs/google/cloud/ces/v1beta/client_function.rb +48 -0
- data/proto_docs/google/cloud/ces/v1beta/common.rb +375 -0
- data/proto_docs/google/cloud/ces/v1beta/connector_tool.rb +122 -0
- data/proto_docs/google/cloud/ces/v1beta/connector_toolset.rb +52 -0
- data/proto_docs/google/cloud/ces/v1beta/conversation.rb +156 -0
- data/proto_docs/google/cloud/ces/v1beta/data_store.rb +102 -0
- data/proto_docs/google/cloud/ces/v1beta/data_store_tool.rb +328 -0
- data/proto_docs/google/cloud/ces/v1beta/deployment.rb +62 -0
- data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +1618 -0
- data/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb +1009 -0
- data/proto_docs/google/cloud/ces/v1beta/example.rb +245 -0
- data/proto_docs/google/cloud/ces/v1beta/fakes.rb +67 -0
- data/proto_docs/google/cloud/ces/v1beta/file_context.rb +50 -0
- data/proto_docs/google/cloud/ces/v1beta/file_search_tool.rb +60 -0
- data/proto_docs/google/cloud/ces/v1beta/golden_run.rb +40 -0
- data/proto_docs/google/cloud/ces/v1beta/google_search_tool.rb +76 -0
- data/proto_docs/google/cloud/ces/v1beta/guardrail.rb +324 -0
- data/proto_docs/google/cloud/ces/v1beta/mcp_tool.rb +85 -0
- data/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb +71 -0
- data/proto_docs/google/cloud/ces/v1beta/mocks.rb +60 -0
- data/proto_docs/google/cloud/ces/v1beta/omnichannel.rb +163 -0
- data/proto_docs/google/cloud/ces/v1beta/omnichannel_service.rb +45 -0
- data/proto_docs/google/cloud/ces/v1beta/open_api_tool.rb +66 -0
- data/proto_docs/google/cloud/ces/v1beta/open_api_toolset.rb +57 -0
- data/proto_docs/google/cloud/ces/v1beta/python_function.rb +44 -0
- data/proto_docs/google/cloud/ces/v1beta/schema.rb +162 -0
- data/proto_docs/google/cloud/ces/v1beta/search_suggestions.rb +55 -0
- data/proto_docs/google/cloud/ces/v1beta/security_settings.rb +80 -0
- data/proto_docs/google/cloud/ces/v1beta/session_service.rb +490 -0
- data/proto_docs/google/cloud/ces/v1beta/system_tool.rb +38 -0
- data/proto_docs/google/cloud/ces/v1beta/tool.rb +126 -0
- data/proto_docs/google/cloud/ces/v1beta/tool_service.rb +173 -0
- data/proto_docs/google/cloud/ces/v1beta/toolset.rb +80 -0
- data/proto_docs/google/cloud/ces/v1beta/toolset_tool.rb +40 -0
- data/proto_docs/google/cloud/ces/v1beta/widget_service.rb +62 -0
- data/proto_docs/google/cloud/ces/v1beta/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 +204 -9
|
@@ -0,0 +1,836 @@
|
|
|
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 app serves as a top-level container for a group of agents, including the
|
|
25
|
+
# root agent and its sub-agents, along with their associated configurations.
|
|
26
|
+
# These agents work together to achieve specific goals within the app's
|
|
27
|
+
# context.
|
|
28
|
+
# @!attribute [rw] name
|
|
29
|
+
# @return [::String]
|
|
30
|
+
# Identifier. The unique identifier of the app.
|
|
31
|
+
# Format: `projects/{project}/locations/{location}/apps/{app}`
|
|
32
|
+
# @!attribute [rw] display_name
|
|
33
|
+
# @return [::String]
|
|
34
|
+
# Required. Display name of the app.
|
|
35
|
+
# @!attribute [rw] description
|
|
36
|
+
# @return [::String]
|
|
37
|
+
# Optional. Human-readable description of the app.
|
|
38
|
+
# @!attribute [rw] pinned
|
|
39
|
+
# @return [::Boolean]
|
|
40
|
+
# Optional. Whether the app is pinned in the app list.
|
|
41
|
+
# @!attribute [rw] root_agent
|
|
42
|
+
# @return [::String]
|
|
43
|
+
# Optional. The root agent is the entry point of the app.
|
|
44
|
+
# Format: `projects/{project}/locations/{location}/apps/{app}/agents/{agent}`
|
|
45
|
+
# @!attribute [rw] language_settings
|
|
46
|
+
# @return [::Google::Cloud::Ces::V1beta::LanguageSettings]
|
|
47
|
+
# Optional. Language settings of the app.
|
|
48
|
+
# @!attribute [rw] time_zone_settings
|
|
49
|
+
# @return [::Google::Cloud::Ces::V1beta::TimeZoneSettings]
|
|
50
|
+
# Optional. TimeZone settings of the app.
|
|
51
|
+
# @!attribute [rw] audio_processing_config
|
|
52
|
+
# @return [::Google::Cloud::Ces::V1beta::AudioProcessingConfig]
|
|
53
|
+
# Optional. Audio processing configuration of the app.
|
|
54
|
+
# @!attribute [rw] logging_settings
|
|
55
|
+
# @return [::Google::Cloud::Ces::V1beta::LoggingSettings]
|
|
56
|
+
# Optional. Logging settings of the app.
|
|
57
|
+
# @!attribute [rw] error_handling_settings
|
|
58
|
+
# @return [::Google::Cloud::Ces::V1beta::ErrorHandlingSettings]
|
|
59
|
+
# Optional. Error handling settings of the app.
|
|
60
|
+
# @!attribute [rw] model_settings
|
|
61
|
+
# @return [::Google::Cloud::Ces::V1beta::ModelSettings]
|
|
62
|
+
# Optional. The default LLM model settings for the app.
|
|
63
|
+
# Individual resources (e.g. agents, guardrails) can override these
|
|
64
|
+
# configurations as needed.
|
|
65
|
+
# @!attribute [rw] tool_execution_mode
|
|
66
|
+
# @return [::Google::Cloud::Ces::V1beta::App::ToolExecutionMode]
|
|
67
|
+
# Optional. The tool execution mode for the app. If not provided, will
|
|
68
|
+
# default to PARALLEL.
|
|
69
|
+
# @!attribute [rw] evaluation_metrics_thresholds
|
|
70
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds]
|
|
71
|
+
# Optional. The evaluation thresholds for the app.
|
|
72
|
+
# @!attribute [rw] variable_declarations
|
|
73
|
+
# @return [::Array<::Google::Cloud::Ces::V1beta::App::VariableDeclaration>]
|
|
74
|
+
# Optional. The declarations of the variables.
|
|
75
|
+
# @!attribute [r] predefined_variable_declarations
|
|
76
|
+
# @return [::Array<::Google::Cloud::Ces::V1beta::App::VariableDeclaration>]
|
|
77
|
+
# Output only. The declarations of predefined variables for the app.
|
|
78
|
+
# @!attribute [rw] global_instruction
|
|
79
|
+
# @return [::String]
|
|
80
|
+
# Optional. Instructions for all the agents in the app.
|
|
81
|
+
# You can use this instruction to set up a stable identity or personality
|
|
82
|
+
# across all the agents.
|
|
83
|
+
# @!attribute [rw] guardrails
|
|
84
|
+
# @return [::Array<::String>]
|
|
85
|
+
# Optional. List of guardrails for the app.
|
|
86
|
+
# Format:
|
|
87
|
+
# `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`
|
|
88
|
+
# @!attribute [rw] data_store_settings
|
|
89
|
+
# @return [::Google::Cloud::Ces::V1beta::DataStoreSettings]
|
|
90
|
+
# Optional. The data store settings for the app.
|
|
91
|
+
# @!attribute [rw] default_channel_profile
|
|
92
|
+
# @return [::Google::Cloud::Ces::V1beta::ChannelProfile]
|
|
93
|
+
# Optional. The default channel profile used by the app.
|
|
94
|
+
# @!attribute [rw] metadata
|
|
95
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
96
|
+
# Optional. Metadata about the app. This field can be used to store
|
|
97
|
+
# additional information relevant to the app's details or intended usages.
|
|
98
|
+
# @!attribute [r] create_time
|
|
99
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
100
|
+
# Output only. Timestamp when the app was created.
|
|
101
|
+
# @!attribute [r] update_time
|
|
102
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
103
|
+
# Output only. Timestamp when the app was last updated.
|
|
104
|
+
# @!attribute [r] etag
|
|
105
|
+
# @return [::String]
|
|
106
|
+
# Output only. Etag used to ensure the object hasn't changed during a
|
|
107
|
+
# read-modify-write operation. If the etag is empty, the update will
|
|
108
|
+
# overwrite any concurrent changes.
|
|
109
|
+
# @!attribute [r] deployment_count
|
|
110
|
+
# @return [::Integer]
|
|
111
|
+
# Output only. Number of deployments in the app.
|
|
112
|
+
# @!attribute [rw] client_certificate_settings
|
|
113
|
+
# @return [::Google::Cloud::Ces::V1beta::ClientCertificateSettings]
|
|
114
|
+
# Optional. The default client certificate settings for the app.
|
|
115
|
+
# @!attribute [rw] locked
|
|
116
|
+
# @return [::Boolean]
|
|
117
|
+
# Optional. Indicates whether the app is locked for changes. If the app is
|
|
118
|
+
# locked, modifications to the app resources will be rejected.
|
|
119
|
+
# @!attribute [rw] evaluation_personas
|
|
120
|
+
# @return [::Array<::Google::Cloud::Ces::V1beta::EvaluationPersona>]
|
|
121
|
+
# Optional. The evaluation personas for the app. This field is used to define
|
|
122
|
+
# the personas that can be used for evaluation. Maximum of 30 personas can be
|
|
123
|
+
# defined.
|
|
124
|
+
# @!attribute [rw] evaluation_settings
|
|
125
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationSettings]
|
|
126
|
+
# Optional. The evaluation settings for the app.
|
|
127
|
+
class App
|
|
128
|
+
include ::Google::Protobuf::MessageExts
|
|
129
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
130
|
+
|
|
131
|
+
# Defines the structure and metadata for a variable.
|
|
132
|
+
# @!attribute [rw] name
|
|
133
|
+
# @return [::String]
|
|
134
|
+
# Required. The name of the variable. The name must start with a letter or
|
|
135
|
+
# underscore and contain only letters, numbers, or underscores.
|
|
136
|
+
# @!attribute [rw] description
|
|
137
|
+
# @return [::String]
|
|
138
|
+
# Required. The description of the variable.
|
|
139
|
+
# @!attribute [rw] schema
|
|
140
|
+
# @return [::Google::Cloud::Ces::V1beta::Schema]
|
|
141
|
+
# Required. The schema of the variable.
|
|
142
|
+
class VariableDeclaration
|
|
143
|
+
include ::Google::Protobuf::MessageExts
|
|
144
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# @!attribute [rw] key
|
|
148
|
+
# @return [::String]
|
|
149
|
+
# @!attribute [rw] value
|
|
150
|
+
# @return [::String]
|
|
151
|
+
class MetadataEntry
|
|
152
|
+
include ::Google::Protobuf::MessageExts
|
|
153
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Defines the tool execution behavior if there are **multiple** tools being
|
|
157
|
+
# selected by the agent **at the same time**.
|
|
158
|
+
module ToolExecutionMode
|
|
159
|
+
# Unspecified tool execution mode. Default to PARALLEL.
|
|
160
|
+
TOOL_EXECUTION_MODE_UNSPECIFIED = 0
|
|
161
|
+
|
|
162
|
+
# If there are multiple tools being selected, they will be executed in
|
|
163
|
+
# parallel, with the same
|
|
164
|
+
# [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-of-context).
|
|
165
|
+
PARALLEL = 1
|
|
166
|
+
|
|
167
|
+
# If there are multiple tools being selected, they will be executed
|
|
168
|
+
# sequentially. The next tool will only be executed after the previous tool
|
|
169
|
+
# completes and it can see updated
|
|
170
|
+
# [ToolContext](https://google.github.io/adk-docs/context/#the-different-types-of-context)
|
|
171
|
+
# from the previous tool.
|
|
172
|
+
SEQUENTIAL = 2
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# TimeZone settings of the app.
|
|
177
|
+
# @!attribute [rw] time_zone
|
|
178
|
+
# @return [::String]
|
|
179
|
+
# Optional. The time zone of the app from the [time zone
|
|
180
|
+
# database](https://www.iana.org/time-zones), e.g., America/Los_Angeles,
|
|
181
|
+
# Europe/Paris.
|
|
182
|
+
class TimeZoneSettings
|
|
183
|
+
include ::Google::Protobuf::MessageExts
|
|
184
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# Language settings of the app.
|
|
188
|
+
# @!attribute [rw] default_language_code
|
|
189
|
+
# @return [::String]
|
|
190
|
+
# Optional. The default language code of the app.
|
|
191
|
+
# @!attribute [rw] supported_language_codes
|
|
192
|
+
# @return [::Array<::String>]
|
|
193
|
+
# Optional. List of languages codes supported by the app, in addition to the
|
|
194
|
+
# `default_language_code`.
|
|
195
|
+
# @!attribute [rw] enable_multilingual_support
|
|
196
|
+
# @return [::Boolean]
|
|
197
|
+
# Optional. Enables multilingual support. If true, agents in the app will use
|
|
198
|
+
# pre-built instructions to improve handling of multilingual input.
|
|
199
|
+
# @!attribute [rw] fallback_action
|
|
200
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
201
|
+
# @return [::String]
|
|
202
|
+
# Optional. Deprecated: This feature is no longer supported. Use
|
|
203
|
+
# `enable_multilingual_support` instead to improve handling of multilingual
|
|
204
|
+
# input.
|
|
205
|
+
# The action to perform when an agent receives input in an unsupported
|
|
206
|
+
# language.
|
|
207
|
+
#
|
|
208
|
+
# This can be a predefined action or a custom tool call.
|
|
209
|
+
# Valid values are:
|
|
210
|
+
# - A tool's full resource name, which triggers a specific tool execution.
|
|
211
|
+
# - A predefined system action, such as "escalate" or "exit", which triggers
|
|
212
|
+
# an {::Google::Cloud::Ces::V1beta::EndSession EndSession} signal with
|
|
213
|
+
# corresponding {::Google::Cloud::Ces::V1beta::EndSession#metadata metadata} to
|
|
214
|
+
# terminate the conversation.
|
|
215
|
+
class LanguageSettings
|
|
216
|
+
include ::Google::Protobuf::MessageExts
|
|
217
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Configuration for how the input and output audio should be processed and
|
|
221
|
+
# delivered.
|
|
222
|
+
# @!attribute [rw] synthesize_speech_configs
|
|
223
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Ces::V1beta::SynthesizeSpeechConfig}]
|
|
224
|
+
# Optional. Configuration of how the agent response should be synthesized,
|
|
225
|
+
# mapping from the language code to
|
|
226
|
+
# {::Google::Cloud::Ces::V1beta::SynthesizeSpeechConfig SynthesizeSpeechConfig}.
|
|
227
|
+
#
|
|
228
|
+
# If the configuration for the specified language code is not found, the
|
|
229
|
+
# configuration for the root language code will be used. For example, if the
|
|
230
|
+
# map contains "en-us" and "en", and the specified language code is "en-gb",
|
|
231
|
+
# then "en" configuration will be used.
|
|
232
|
+
#
|
|
233
|
+
# Note: Language code is case-insensitive.
|
|
234
|
+
# @!attribute [rw] barge_in_config
|
|
235
|
+
# @return [::Google::Cloud::Ces::V1beta::BargeInConfig]
|
|
236
|
+
# Optional. Configures the agent behavior for the user barge-in activities.
|
|
237
|
+
# @!attribute [rw] inactivity_timeout
|
|
238
|
+
# @return [::Google::Protobuf::Duration]
|
|
239
|
+
# Optional. The duration of user inactivity (no speech or interaction) before
|
|
240
|
+
# the agent prompts the user for reengagement. If not set, the agent will not
|
|
241
|
+
# prompt the user for reengagement.
|
|
242
|
+
# @!attribute [rw] ambient_sound_config
|
|
243
|
+
# @return [::Google::Cloud::Ces::V1beta::AmbientSoundConfig]
|
|
244
|
+
# Optional. Configuration for the ambient sound to be played with the
|
|
245
|
+
# synthesized agent response, to enhance the naturalness of the conversation.
|
|
246
|
+
class AudioProcessingConfig
|
|
247
|
+
include ::Google::Protobuf::MessageExts
|
|
248
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
249
|
+
|
|
250
|
+
# @!attribute [rw] key
|
|
251
|
+
# @return [::String]
|
|
252
|
+
# @!attribute [rw] value
|
|
253
|
+
# @return [::Google::Cloud::Ces::V1beta::SynthesizeSpeechConfig]
|
|
254
|
+
class SynthesizeSpeechConfigsEntry
|
|
255
|
+
include ::Google::Protobuf::MessageExts
|
|
256
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Configuration for the ambient sound to be played with the synthesized agent
|
|
261
|
+
# response, to enhance the naturalness of the conversation.
|
|
262
|
+
# @!attribute [rw] prebuilt_ambient_noise
|
|
263
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
264
|
+
# @return [::Google::Cloud::Ces::V1beta::AmbientSoundConfig::PrebuiltAmbientNoise]
|
|
265
|
+
# Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of
|
|
266
|
+
# `prebuilt_ambient_sound`.
|
|
267
|
+
#
|
|
268
|
+
# Note: The following fields are mutually exclusive: `prebuilt_ambient_noise`, `gcs_uri`, `prebuilt_ambient_sound`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
269
|
+
# @!attribute [rw] gcs_uri
|
|
270
|
+
# @return [::String]
|
|
271
|
+
# Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in
|
|
272
|
+
# [Cloud Storage](https://cloud.google.com/storage).
|
|
273
|
+
#
|
|
274
|
+
# Note: Please make sure the CES service agent
|
|
275
|
+
# `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com` has
|
|
276
|
+
# `storage.objects.get` permission to the Cloud Storage object.
|
|
277
|
+
#
|
|
278
|
+
# Note: The following fields are mutually exclusive: `gcs_uri`, `prebuilt_ambient_noise`, `prebuilt_ambient_sound`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
279
|
+
# @!attribute [rw] prebuilt_ambient_sound
|
|
280
|
+
# @return [::String]
|
|
281
|
+
# Optional. Name of the prebuilt ambient sound.
|
|
282
|
+
# Valid values are:
|
|
283
|
+
# - "coffee_shop"
|
|
284
|
+
# - "keyboard"
|
|
285
|
+
# - "keypad"
|
|
286
|
+
# - "hum"
|
|
287
|
+
# - "office_1"
|
|
288
|
+
# - "office_2"
|
|
289
|
+
# - "office_3"
|
|
290
|
+
# - "room_1"
|
|
291
|
+
# - "room_2"
|
|
292
|
+
# - "room_3"
|
|
293
|
+
# - "room_4"
|
|
294
|
+
# - "room_5"
|
|
295
|
+
# - "air_conditioner"
|
|
296
|
+
#
|
|
297
|
+
# Note: The following fields are mutually exclusive: `prebuilt_ambient_sound`, `prebuilt_ambient_noise`, `gcs_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
298
|
+
# @!attribute [rw] volume_gain_db
|
|
299
|
+
# @return [::Float]
|
|
300
|
+
# Optional. Volume gain (in dB) of the normal native volume supported by
|
|
301
|
+
# ambient noise, in the range [-96.0, 16.0]. If unset, or set to a value of
|
|
302
|
+
# 0.0 (dB), will play at normal native signal amplitude. A value of -6.0 (dB)
|
|
303
|
+
# will play at approximately half the amplitude of the normal native signal
|
|
304
|
+
# amplitude. A value of +6.0 (dB) will play at approximately twice the
|
|
305
|
+
# amplitude of the normal native signal amplitude. We strongly recommend not
|
|
306
|
+
# to exceed +10 (dB) as there's usually no effective increase in loudness for
|
|
307
|
+
# any value greater than that.
|
|
308
|
+
class AmbientSoundConfig
|
|
309
|
+
include ::Google::Protobuf::MessageExts
|
|
310
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
311
|
+
|
|
312
|
+
# Prebuilt ambient noise.
|
|
313
|
+
module PrebuiltAmbientNoise
|
|
314
|
+
# Not specified.
|
|
315
|
+
PREBUILT_AMBIENT_NOISE_UNSPECIFIED = 0
|
|
316
|
+
|
|
317
|
+
# Ambient noise of a retail store.
|
|
318
|
+
RETAIL_STORE = 1
|
|
319
|
+
|
|
320
|
+
# Ambient noise of a convention hall.
|
|
321
|
+
CONVENTION_HALL = 2
|
|
322
|
+
|
|
323
|
+
# Ambient noise of a street.
|
|
324
|
+
OUTDOOR = 3
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Configuration for how the user barge-in activities should be handled.
|
|
329
|
+
# @!attribute [rw] disable_barge_in
|
|
330
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
331
|
+
# @return [::Boolean]
|
|
332
|
+
# Optional. Disables user barge-in while the agent is speaking. If true, user
|
|
333
|
+
# input during agent response playback will be ignored.
|
|
334
|
+
#
|
|
335
|
+
# Deprecated: `disable_barge_in` is deprecated in favor of
|
|
336
|
+
# {::Google::Cloud::Ces::V1beta::ChannelProfile#disable_barge_in_control `disable_barge_in_control`}
|
|
337
|
+
# in ChannelProfile.
|
|
338
|
+
# @!attribute [rw] barge_in_awareness
|
|
339
|
+
# @return [::Boolean]
|
|
340
|
+
# Optional. If enabled, the agent will adapt its next response based on the
|
|
341
|
+
# assumption that the user hasn't heard the full preceding agent message.
|
|
342
|
+
# This should not be used in scenarios where agent responses are displayed
|
|
343
|
+
# visually.
|
|
344
|
+
class BargeInConfig
|
|
345
|
+
include ::Google::Protobuf::MessageExts
|
|
346
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Configuration for how the agent response should be synthesized.
|
|
350
|
+
# @!attribute [rw] voice
|
|
351
|
+
# @return [::String]
|
|
352
|
+
# Optional. The name of the voice. If not set, the service will choose a
|
|
353
|
+
# voice based on the other parameters such as language_code.
|
|
354
|
+
#
|
|
355
|
+
# For the list of available voices, please refer to [Supported voices and
|
|
356
|
+
# languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud
|
|
357
|
+
# Text-to-Speech.
|
|
358
|
+
# @!attribute [rw] speaking_rate
|
|
359
|
+
# @return [::Float]
|
|
360
|
+
# Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the
|
|
361
|
+
# normal native speed supported by the specific voice. 2.0 is twice as fast,
|
|
362
|
+
# and 0.5 is half as fast. Values outside of the range [0.25, 2.0] will
|
|
363
|
+
# return an error.
|
|
364
|
+
class SynthesizeSpeechConfig
|
|
365
|
+
include ::Google::Protobuf::MessageExts
|
|
366
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# Settings to describe the conversation data collection behaviors for LLM
|
|
370
|
+
# analysis metrics pipeline.
|
|
371
|
+
# @!attribute [rw] llm_metrics_opted_out
|
|
372
|
+
# @return [::Boolean]
|
|
373
|
+
# Optional. Whether to collect conversation data for llm analysis metrics. If
|
|
374
|
+
# true, conversation data will not be collected for llm analysis metrics;
|
|
375
|
+
# otherwise, conversation data will be collected.
|
|
376
|
+
class MetricAnalysisSettings
|
|
377
|
+
include ::Google::Protobuf::MessageExts
|
|
378
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# Settings to describe the logging behaviors for the app.
|
|
382
|
+
# @!attribute [rw] redaction_config
|
|
383
|
+
# @return [::Google::Cloud::Ces::V1beta::RedactionConfig]
|
|
384
|
+
# Optional. Configuration for how sensitive data should be redacted.
|
|
385
|
+
# @!attribute [rw] audio_recording_config
|
|
386
|
+
# @return [::Google::Cloud::Ces::V1beta::AudioRecordingConfig]
|
|
387
|
+
# Optional. Configuration for how audio interactions should be recorded.
|
|
388
|
+
# @!attribute [rw] bigquery_export_settings
|
|
389
|
+
# @return [::Google::Cloud::Ces::V1beta::BigQueryExportSettings]
|
|
390
|
+
# Optional. Settings to describe the BigQuery export behaviors for the app.
|
|
391
|
+
# The conversation data will be exported to BigQuery tables if it is enabled.
|
|
392
|
+
# @!attribute [rw] cloud_logging_settings
|
|
393
|
+
# @return [::Google::Cloud::Ces::V1beta::CloudLoggingSettings]
|
|
394
|
+
# Optional. Settings to describe the Cloud Logging behaviors for the app.
|
|
395
|
+
# @!attribute [rw] conversation_logging_settings
|
|
396
|
+
# @return [::Google::Cloud::Ces::V1beta::ConversationLoggingSettings]
|
|
397
|
+
# Optional. Settings to describe the conversation logging behaviors for the
|
|
398
|
+
# app.
|
|
399
|
+
# @!attribute [rw] evaluation_audio_recording_config
|
|
400
|
+
# @return [::Google::Cloud::Ces::V1beta::AudioRecordingConfig]
|
|
401
|
+
# Optional. Configuration for how audio interactions should be recorded for
|
|
402
|
+
# the evaluation. By default, audio recording is not enabled for evaluation
|
|
403
|
+
# sessions.
|
|
404
|
+
# @!attribute [rw] metric_analysis_settings
|
|
405
|
+
# @return [::Google::Cloud::Ces::V1beta::MetricAnalysisSettings]
|
|
406
|
+
# Optional. Settings to describe the conversation data collection behaviors
|
|
407
|
+
# for the LLM analysis pipeline for the app.
|
|
408
|
+
class LoggingSettings
|
|
409
|
+
include ::Google::Protobuf::MessageExts
|
|
410
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
# Settings to describe how errors should be handled in the app.
|
|
414
|
+
# @!attribute [rw] error_handling_strategy
|
|
415
|
+
# @return [::Google::Cloud::Ces::V1beta::ErrorHandlingSettings::ErrorHandlingStrategy]
|
|
416
|
+
# Optional. The strategy to use for error handling.
|
|
417
|
+
# @!attribute [rw] fallback_response_config
|
|
418
|
+
# @return [::Google::Cloud::Ces::V1beta::ErrorHandlingSettings::FallbackResponseConfig]
|
|
419
|
+
# Optional. Configuration for handling fallback responses.
|
|
420
|
+
# @!attribute [rw] end_session_config
|
|
421
|
+
# @return [::Google::Cloud::Ces::V1beta::ErrorHandlingSettings::EndSessionConfig]
|
|
422
|
+
# Optional. Configuration for ending the session in case of system errors
|
|
423
|
+
# (e.g. LLM errors).
|
|
424
|
+
class ErrorHandlingSettings
|
|
425
|
+
include ::Google::Protobuf::MessageExts
|
|
426
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
427
|
+
|
|
428
|
+
# Configuration for handling fallback responses.
|
|
429
|
+
# @!attribute [rw] custom_fallback_messages
|
|
430
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
431
|
+
# Optional. The fallback messages in case of system errors (e.g. LLM
|
|
432
|
+
# errors), mapped by [supported language
|
|
433
|
+
# code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
|
|
434
|
+
# @!attribute [rw] max_fallback_attempts
|
|
435
|
+
# @return [::Integer]
|
|
436
|
+
# Optional. The maximum number of fallback attempts to make before the
|
|
437
|
+
# agent emitting {::Google::Cloud::Ces::V1beta::EndSession EndSession} Signal.
|
|
438
|
+
class FallbackResponseConfig
|
|
439
|
+
include ::Google::Protobuf::MessageExts
|
|
440
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
441
|
+
|
|
442
|
+
# @!attribute [rw] key
|
|
443
|
+
# @return [::String]
|
|
444
|
+
# @!attribute [rw] value
|
|
445
|
+
# @return [::String]
|
|
446
|
+
class CustomFallbackMessagesEntry
|
|
447
|
+
include ::Google::Protobuf::MessageExts
|
|
448
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
449
|
+
end
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Configuration for ending the session in case of system errors (e.g. LLM
|
|
453
|
+
# errors).
|
|
454
|
+
# @!attribute [rw] escalate_session
|
|
455
|
+
# @return [::Boolean]
|
|
456
|
+
# Optional. Whether to escalate the session in
|
|
457
|
+
# {::Google::Cloud::Ces::V1beta::EndSession EndSession}. If session is
|
|
458
|
+
# escalated, [metadata in
|
|
459
|
+
# EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
|
|
460
|
+
# `session_escalated = true`. See
|
|
461
|
+
# https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
|
|
462
|
+
# for details.
|
|
463
|
+
class EndSessionConfig
|
|
464
|
+
include ::Google::Protobuf::MessageExts
|
|
465
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
# Defines the strategy for handling errors.
|
|
469
|
+
module ErrorHandlingStrategy
|
|
470
|
+
# Unspecified error handling strategy.
|
|
471
|
+
ERROR_HANDLING_STRATEGY_UNSPECIFIED = 0
|
|
472
|
+
|
|
473
|
+
# No specific handling is enabled.
|
|
474
|
+
NONE = 1
|
|
475
|
+
|
|
476
|
+
# A fallback message will be returned to the user in case of
|
|
477
|
+
# system errors (e.g. LLM errors).
|
|
478
|
+
FALLBACK_RESPONSE = 2
|
|
479
|
+
|
|
480
|
+
# An {::Google::Cloud::Ces::V1beta::EndSession EndSession} signal will be
|
|
481
|
+
# emitted in case of system errors (e.g. LLM errors).
|
|
482
|
+
END_SESSION = 3
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
# Threshold settings for metrics in an Evaluation.
|
|
487
|
+
# @!attribute [rw] golden_evaluation_metrics_thresholds
|
|
488
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::GoldenEvaluationMetricsThresholds]
|
|
489
|
+
# Optional. The golden evaluation metrics thresholds.
|
|
490
|
+
# @!attribute [rw] hallucination_metric_behavior
|
|
491
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
492
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::HallucinationMetricBehavior]
|
|
493
|
+
# Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead.
|
|
494
|
+
# The hallucination metric behavior is currently used for golden evaluations.
|
|
495
|
+
# @!attribute [rw] golden_hallucination_metric_behavior
|
|
496
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::HallucinationMetricBehavior]
|
|
497
|
+
# Optional. The hallucination metric behavior for golden evaluations.
|
|
498
|
+
# @!attribute [rw] scenario_hallucination_metric_behavior
|
|
499
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::HallucinationMetricBehavior]
|
|
500
|
+
# Optional. The hallucination metric behavior for scenario evaluations.
|
|
501
|
+
class EvaluationMetricsThresholds
|
|
502
|
+
include ::Google::Protobuf::MessageExts
|
|
503
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
504
|
+
|
|
505
|
+
# Settings for golden evaluations.
|
|
506
|
+
# @!attribute [rw] turn_level_metrics_thresholds
|
|
507
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::GoldenEvaluationMetricsThresholds::TurnLevelMetricsThresholds]
|
|
508
|
+
# Optional. The turn level metrics thresholds.
|
|
509
|
+
# @!attribute [rw] expectation_level_metrics_thresholds
|
|
510
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::GoldenEvaluationMetricsThresholds::ExpectationLevelMetricsThresholds]
|
|
511
|
+
# Optional. The expectation level metrics thresholds.
|
|
512
|
+
# @!attribute [rw] tool_matching_settings
|
|
513
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::ToolMatchingSettings]
|
|
514
|
+
# Optional. The tool matching settings. An
|
|
515
|
+
# extra tool call is a tool call that is present in the execution but does
|
|
516
|
+
# not match any tool call in the golden expectation.
|
|
517
|
+
class GoldenEvaluationMetricsThresholds
|
|
518
|
+
include ::Google::Protobuf::MessageExts
|
|
519
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
520
|
+
|
|
521
|
+
# Turn level metrics thresholds.
|
|
522
|
+
# @!attribute [rw] semantic_similarity_success_threshold
|
|
523
|
+
# @return [::Integer]
|
|
524
|
+
# Optional. The success threshold for semantic similarity. Must be an
|
|
525
|
+
# integer between 0 and 4. Default is >= 3.
|
|
526
|
+
# @!attribute [rw] overall_tool_invocation_correctness_threshold
|
|
527
|
+
# @return [::Float]
|
|
528
|
+
# Optional. The success threshold for overall tool invocation
|
|
529
|
+
# correctness. Must be a float between 0 and 1. Default is 1.0.
|
|
530
|
+
# @!attribute [rw] semantic_similarity_channel
|
|
531
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::GoldenEvaluationMetricsThresholds::TurnLevelMetricsThresholds::SemanticSimilarityChannel]
|
|
532
|
+
# Optional. The semantic similarity channel to use for evaluation.
|
|
533
|
+
class TurnLevelMetricsThresholds
|
|
534
|
+
include ::Google::Protobuf::MessageExts
|
|
535
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
536
|
+
|
|
537
|
+
# Semantic similarity channel to use.
|
|
538
|
+
module SemanticSimilarityChannel
|
|
539
|
+
# Metric unspecified. Defaults to TEXT.
|
|
540
|
+
SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED = 0
|
|
541
|
+
|
|
542
|
+
# Use text semantic similarity.
|
|
543
|
+
TEXT = 1
|
|
544
|
+
|
|
545
|
+
# Use audio semantic similarity.
|
|
546
|
+
AUDIO = 2
|
|
547
|
+
end
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# Expectation level metrics thresholds.
|
|
551
|
+
# @!attribute [rw] tool_invocation_parameter_correctness_threshold
|
|
552
|
+
# @return [::Float]
|
|
553
|
+
# Optional. The success threshold for individual tool invocation
|
|
554
|
+
# parameter correctness. Must be a float between 0 and 1. Default is 1.0.
|
|
555
|
+
class ExpectationLevelMetricsThresholds
|
|
556
|
+
include ::Google::Protobuf::MessageExts
|
|
557
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
558
|
+
end
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
# Settings for matching tool calls.
|
|
562
|
+
# @!attribute [rw] extra_tool_call_behavior
|
|
563
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsThresholds::ToolMatchingSettings::ExtraToolCallBehavior]
|
|
564
|
+
# Optional. Behavior for extra tool calls.
|
|
565
|
+
# Defaults to FAIL.
|
|
566
|
+
class ToolMatchingSettings
|
|
567
|
+
include ::Google::Protobuf::MessageExts
|
|
568
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
569
|
+
|
|
570
|
+
# Defines the behavior when an extra tool call is encountered. An extra
|
|
571
|
+
# tool call is a tool call that is present in the execution but does not
|
|
572
|
+
# match any tool call in the golden expectation.
|
|
573
|
+
module ExtraToolCallBehavior
|
|
574
|
+
# Unspecified behavior. Defaults to FAIL.
|
|
575
|
+
EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0
|
|
576
|
+
|
|
577
|
+
# Fail the evaluation if an extra tool call is encountered.
|
|
578
|
+
FAIL = 1
|
|
579
|
+
|
|
580
|
+
# Allow the extra tool call.
|
|
581
|
+
ALLOW = 2
|
|
582
|
+
end
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# The hallucination metric behavior. Regardless of the behavior, the metric
|
|
586
|
+
# will always be calculated. The difference is that when disabled, the
|
|
587
|
+
# metric is not used to calculate the overall evaluation score.
|
|
588
|
+
module HallucinationMetricBehavior
|
|
589
|
+
# Unspecified hallucination metric behavior.
|
|
590
|
+
HALLUCINATION_METRIC_BEHAVIOR_UNSPECIFIED = 0
|
|
591
|
+
|
|
592
|
+
# Disable hallucination metric.
|
|
593
|
+
DISABLED = 1
|
|
594
|
+
|
|
595
|
+
# Enable hallucination metric.
|
|
596
|
+
ENABLED = 2
|
|
597
|
+
end
|
|
598
|
+
end
|
|
599
|
+
|
|
600
|
+
# Settings for evaluation.
|
|
601
|
+
# @!attribute [rw] scenario_conversation_initiator
|
|
602
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationSettings::ScenarioConversationInitiator]
|
|
603
|
+
# Optional. Who starts the conversation in a scenario evaluation.
|
|
604
|
+
# @!attribute [rw] golden_run_method
|
|
605
|
+
# @return [::Google::Cloud::Ces::V1beta::GoldenRunMethod]
|
|
606
|
+
# Optional. The default method used to run golden evaluations. This will be
|
|
607
|
+
# used if no golden_run_method is specified in the RunEvaluationRequest.
|
|
608
|
+
# @!attribute [rw] golden_evaluation_tool_call_behaviour
|
|
609
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationToolCallBehaviour]
|
|
610
|
+
# Optional. Configures the default tool call behaviour for golden
|
|
611
|
+
# evaluations.
|
|
612
|
+
# @!attribute [rw] scenario_evaluation_tool_call_behaviour
|
|
613
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationToolCallBehaviour]
|
|
614
|
+
# Optional. Configures the default tool call behaviour for scenario
|
|
615
|
+
# evaluations.
|
|
616
|
+
class EvaluationSettings
|
|
617
|
+
include ::Google::Protobuf::MessageExts
|
|
618
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
619
|
+
|
|
620
|
+
# Determines who starts the conversation in a scenario evaluation session.
|
|
621
|
+
module ScenarioConversationInitiator
|
|
622
|
+
# Unspecified. Defaults to USER.
|
|
623
|
+
SCENARIO_CONVERSATION_INITIATOR_UNSPECIFIED = 0
|
|
624
|
+
|
|
625
|
+
# The user starts the conversation.
|
|
626
|
+
USER = 1
|
|
627
|
+
|
|
628
|
+
# The agent starts the conversation.
|
|
629
|
+
AGENT = 2
|
|
630
|
+
end
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
# Settings for custom client certificates.
|
|
634
|
+
# @!attribute [rw] tls_certificate
|
|
635
|
+
# @return [::String]
|
|
636
|
+
# Required. The TLS certificate encoded in PEM format. This string must
|
|
637
|
+
# include the begin header and end footer lines.
|
|
638
|
+
# @!attribute [rw] private_key
|
|
639
|
+
# @return [::String]
|
|
640
|
+
# Required. The name of the SecretManager secret version resource storing the
|
|
641
|
+
# private key encoded in PEM format.
|
|
642
|
+
# Format: `projects/{project}/secrets/{secret}/versions/{version}`
|
|
643
|
+
# @!attribute [rw] passphrase
|
|
644
|
+
# @return [::String]
|
|
645
|
+
# Optional. The name of the SecretManager secret version resource storing the
|
|
646
|
+
# passphrase to decrypt the private key. Should be left unset if the private
|
|
647
|
+
# key is not encrypted.
|
|
648
|
+
# Format: `projects/{project}/secrets/{secret}/versions/{version}`
|
|
649
|
+
class ClientCertificateSettings
|
|
650
|
+
include ::Google::Protobuf::MessageExts
|
|
651
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# Settings to describe the conversation logging behaviors for the app.
|
|
655
|
+
# @!attribute [rw] disable_conversation_logging
|
|
656
|
+
# @return [::Boolean]
|
|
657
|
+
# Optional. Whether to disable conversation logging for the sessions.
|
|
658
|
+
# @!attribute [rw] retention_window
|
|
659
|
+
# @return [::Google::Protobuf::Duration]
|
|
660
|
+
# Optional. Controls the retention window for the conversation.
|
|
661
|
+
# If not set, the conversation will be retained for 365 days.
|
|
662
|
+
class ConversationLoggingSettings
|
|
663
|
+
include ::Google::Protobuf::MessageExts
|
|
664
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
665
|
+
end
|
|
666
|
+
|
|
667
|
+
# Settings to describe the Cloud Logging behaviors for the app.
|
|
668
|
+
# @!attribute [rw] enable_cloud_logging
|
|
669
|
+
# @return [::Boolean]
|
|
670
|
+
# Optional. Whether to enable Cloud Logging for the sessions.
|
|
671
|
+
class CloudLoggingSettings
|
|
672
|
+
include ::Google::Protobuf::MessageExts
|
|
673
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# Configuration for how the audio interactions should be recorded.
|
|
677
|
+
# @!attribute [rw] gcs_bucket
|
|
678
|
+
# @return [::String]
|
|
679
|
+
# Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to
|
|
680
|
+
# store the session audio recordings. The URI must start with "gs://".
|
|
681
|
+
#
|
|
682
|
+
# Please choose a bucket location that meets your data residency
|
|
683
|
+
# requirements.
|
|
684
|
+
#
|
|
685
|
+
# Note: If the Cloud Storage bucket is in a different project from the app,
|
|
686
|
+
# you should grant `storage.objects.create` permission to the CES service
|
|
687
|
+
# agent `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
|
|
688
|
+
# @!attribute [rw] gcs_path_prefix
|
|
689
|
+
# @return [::String]
|
|
690
|
+
# Optional. The Cloud Storage path prefix for audio recordings.
|
|
691
|
+
#
|
|
692
|
+
# This prefix can include the following placeholders, which will be
|
|
693
|
+
# dynamically substituted at serving time:
|
|
694
|
+
# - $project: project ID
|
|
695
|
+
# - $location: app location
|
|
696
|
+
# - $app: app ID
|
|
697
|
+
# - $date: session date in YYYY-MM-DD format
|
|
698
|
+
# - $session: session ID
|
|
699
|
+
#
|
|
700
|
+
# If the path prefix is not specified, the default prefix
|
|
701
|
+
# `$project/$location/$app/$date/$session/` will be used.
|
|
702
|
+
class AudioRecordingConfig
|
|
703
|
+
include ::Google::Protobuf::MessageExts
|
|
704
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
705
|
+
end
|
|
706
|
+
|
|
707
|
+
# Configuration to instruct how sensitive data should be handled.
|
|
708
|
+
# @!attribute [rw] enable_redaction
|
|
709
|
+
# @return [::Boolean]
|
|
710
|
+
# Optional. If true, redaction will be applied in various logging scenarios,
|
|
711
|
+
# including conversation history, Cloud Logging and audio recording.
|
|
712
|
+
# @!attribute [rw] inspect_template
|
|
713
|
+
# @return [::String]
|
|
714
|
+
# Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to
|
|
715
|
+
# configure detection of sensitive data types.
|
|
716
|
+
#
|
|
717
|
+
# Format:
|
|
718
|
+
# `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
|
|
719
|
+
# @!attribute [rw] deidentify_template
|
|
720
|
+
# @return [::String]
|
|
721
|
+
# Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name
|
|
722
|
+
# to instruct on how to de-identify content.
|
|
723
|
+
#
|
|
724
|
+
# Format:
|
|
725
|
+
# `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`
|
|
726
|
+
class RedactionConfig
|
|
727
|
+
include ::Google::Protobuf::MessageExts
|
|
728
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
# Data store related settings for the app.
|
|
732
|
+
# @!attribute [r] engines
|
|
733
|
+
# @return [::Array<::Google::Cloud::Ces::V1beta::DataStoreSettings::Engine>]
|
|
734
|
+
# Output only. The engines for the app.
|
|
735
|
+
class DataStoreSettings
|
|
736
|
+
include ::Google::Protobuf::MessageExts
|
|
737
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
738
|
+
|
|
739
|
+
# An engine to which the data stores are connected.
|
|
740
|
+
# See Vertex AI Search:
|
|
741
|
+
# https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction.
|
|
742
|
+
# @!attribute [r] name
|
|
743
|
+
# @return [::String]
|
|
744
|
+
# Output only. The resource name of the engine.
|
|
745
|
+
# Format:
|
|
746
|
+
# `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
|
|
747
|
+
# @!attribute [r] type
|
|
748
|
+
# @return [::Google::Cloud::Ces::V1beta::DataStoreSettings::Engine::Type]
|
|
749
|
+
# Output only. The type of the engine.
|
|
750
|
+
class Engine
|
|
751
|
+
include ::Google::Protobuf::MessageExts
|
|
752
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
753
|
+
|
|
754
|
+
# The type of the engine.
|
|
755
|
+
# See the documentation available at
|
|
756
|
+
# https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/v1/SolutionType
|
|
757
|
+
# and
|
|
758
|
+
# https://cloud.google.com/generative-ai-app-builder/docs/create-datastore-ingest.
|
|
759
|
+
module Type
|
|
760
|
+
# Unspecified engine type.
|
|
761
|
+
TYPE_UNSPECIFIED = 0
|
|
762
|
+
|
|
763
|
+
# The SOLUTION_TYPE_SEARCH engine for the app. All connector data stores
|
|
764
|
+
# added to the app will be added to this engine.
|
|
765
|
+
ENGINE_TYPE_SEARCH = 1
|
|
766
|
+
|
|
767
|
+
# Chat engine type.
|
|
768
|
+
# The SOLUTION_TYPE_CHAT engine for the app. All connector data stores
|
|
769
|
+
# added to the app will be added to this engine.
|
|
770
|
+
ENGINE_TYPE_CHAT = 2
|
|
771
|
+
end
|
|
772
|
+
end
|
|
773
|
+
end
|
|
774
|
+
|
|
775
|
+
# A persona represents an end user in an evaluation.
|
|
776
|
+
# @!attribute [rw] name
|
|
777
|
+
# @return [::String]
|
|
778
|
+
# Required. The unique identifier of the persona.
|
|
779
|
+
# Format:
|
|
780
|
+
# `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}`
|
|
781
|
+
# @!attribute [rw] description
|
|
782
|
+
# @return [::String]
|
|
783
|
+
# Optional. The description of the persona.
|
|
784
|
+
# @!attribute [rw] display_name
|
|
785
|
+
# @return [::String]
|
|
786
|
+
# Required. The display name of the persona. Unique within an app.
|
|
787
|
+
# @!attribute [rw] personality
|
|
788
|
+
# @return [::String]
|
|
789
|
+
# Required. An instruction for the agent on how to behave in the evaluation.
|
|
790
|
+
# @!attribute [rw] speech_config
|
|
791
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationPersona::SpeechConfig]
|
|
792
|
+
# Optional. Configuration for how the persona sounds (TTS settings).
|
|
793
|
+
class EvaluationPersona
|
|
794
|
+
include ::Google::Protobuf::MessageExts
|
|
795
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
796
|
+
|
|
797
|
+
# Configuration for Text-to-Speech generation.
|
|
798
|
+
# @!attribute [rw] speaking_rate
|
|
799
|
+
# @return [::Float]
|
|
800
|
+
# Optional. The speaking rate. 1.0 is normal.
|
|
801
|
+
# Lower is slower (e.g., 0.8), higher is faster (e.g., 1.5).
|
|
802
|
+
# Useful for testing how the agent handles fast talkers.
|
|
803
|
+
# @!attribute [rw] environment
|
|
804
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationPersona::SpeechConfig::BackgroundEnvironment]
|
|
805
|
+
# Optional. The simulated audio environment.
|
|
806
|
+
# @!attribute [rw] voice_id
|
|
807
|
+
# @return [::String]
|
|
808
|
+
# Optional. The specific voice identifier/accent to use.
|
|
809
|
+
# Example: "en-US-Wavenet-D" or "en-GB-Standard-A"
|
|
810
|
+
class SpeechConfig
|
|
811
|
+
include ::Google::Protobuf::MessageExts
|
|
812
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
813
|
+
|
|
814
|
+
# Simulated audio environment.
|
|
815
|
+
module BackgroundEnvironment
|
|
816
|
+
# Background environment unspecified.
|
|
817
|
+
BACKGROUND_ENVIRONMENT_UNSPECIFIED = 0
|
|
818
|
+
|
|
819
|
+
# Call center environment.
|
|
820
|
+
CALL_CENTER = 3
|
|
821
|
+
|
|
822
|
+
# Traffic noise environment.
|
|
823
|
+
TRAFFIC = 4
|
|
824
|
+
|
|
825
|
+
# Kids noise environment.
|
|
826
|
+
KIDS_NOISE = 5
|
|
827
|
+
|
|
828
|
+
# Cafe environment.
|
|
829
|
+
CAFE = 6
|
|
830
|
+
end
|
|
831
|
+
end
|
|
832
|
+
end
|
|
833
|
+
end
|
|
834
|
+
end
|
|
835
|
+
end
|
|
836
|
+
end
|