google-cloud-ces-v1beta 0.a → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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_card_pb.rb +26 -0
- data/lib/google/cloud/ces/v1beta/agent_pb.rb +30 -0
- data/lib/google/cloud/ces/v1beta/agent_service/client.rb +5641 -0
- data/lib/google/cloud/ces/v1beta/agent_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/agent_service/operations.rb +843 -0
- data/lib/google/cloud/ces/v1beta/agent_service/paths.rb +481 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest/client.rb +5249 -0
- data/lib/google/cloud/ces/v1beta/agent_service/rest/operations.rb +927 -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 +132 -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 +70 -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 +30 -0
- data/lib/google/cloud/ces/v1beta/evaluation_metrics_config_pb.rb +31 -0
- data/lib/google/cloud/ces/v1beta/evaluation_pb.rb +99 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/client.rb +4050 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/credentials.rb +48 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/operations.rb +843 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/paths.rb +306 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/client.rb +3770 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/operations.rb +927 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service/rest/service_stub.rb +2233 -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 +93 -0
- data/lib/google/cloud/ces/v1beta/evaluation_service_services_pb.rb +116 -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 +27 -0
- data/lib/google/cloud/ces/v1beta/mcp_toolset_pb.rb +28 -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 +24 -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 +762 -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 +562 -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 +54 -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 +40 -0
- data/lib/google/cloud/ces/v1beta/tool_service/client.rb +733 -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 +677 -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 +37 -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 +503 -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 +461 -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 +31 -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 +233 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_card.rb +122 -0
- data/proto_docs/google/cloud/ces/v1beta/agent_service.rb +1682 -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 +883 -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 +159 -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 +123 -0
- data/proto_docs/google/cloud/ces/v1beta/evaluation.rb +1687 -0
- data/proto_docs/google/cloud/ces/v1beta/evaluation_metrics_config.rb +151 -0
- data/proto_docs/google/cloud/ces/v1beta/evaluation_service.rb +1087 -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 +110 -0
- data/proto_docs/google/cloud/ces/v1beta/mcp_toolset.rb +118 -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 +47 -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 +493 -0
- data/proto_docs/google/cloud/ces/v1beta/system_tool.rb +38 -0
- data/proto_docs/google/cloud/ces/v1beta/tool.rb +136 -0
- data/proto_docs/google/cloud/ces/v1beta/tool_service.rb +185 -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 +182 -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 +208 -9
|
@@ -0,0 +1,151 @@
|
|
|
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
|
+
# Configures the metrics for an evaluation.
|
|
25
|
+
# @!attribute [rw] golden_metrics_config
|
|
26
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::GoldenMetricsConfig]
|
|
27
|
+
# Optional. Configuration for the golden metrics for the evaluation.
|
|
28
|
+
# @!attribute [rw] scenario_metrics_config
|
|
29
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ScenarioMetricsConfig]
|
|
30
|
+
# Optional. Configuration for the scenario metrics for the evaluation.
|
|
31
|
+
class EvaluationMetricsConfig
|
|
32
|
+
include ::Google::Protobuf::MessageExts
|
|
33
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
34
|
+
|
|
35
|
+
# Configuration for similarity metrics for the evaluation.
|
|
36
|
+
# To disable the metric, set the message but do not set the
|
|
37
|
+
# `enable_semantic_similarity_metrics` field to true (or explicitly set it to
|
|
38
|
+
# false). To unset the configuration and fallback to the default behavior,
|
|
39
|
+
# omit the message entirely.
|
|
40
|
+
# @!attribute [rw] enable_semantic_similarity_metrics
|
|
41
|
+
# @return [::Boolean]
|
|
42
|
+
# Optional. Whether to calculate semantic similarity metrics for the
|
|
43
|
+
# evaluation.
|
|
44
|
+
class SemanticSimilarityMetricsConfig
|
|
45
|
+
include ::Google::Protobuf::MessageExts
|
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Configuration for correctness metrics for the evaluation.
|
|
50
|
+
# To disable the metric, set the message but do not set the
|
|
51
|
+
# `enable_tool_correctness_metrics` field to true (or explicitly set it to
|
|
52
|
+
# false). To unset the configuration and fallback to the default behavior,
|
|
53
|
+
# omit the message entirely.
|
|
54
|
+
# @!attribute [rw] enable_tool_correctness_metrics
|
|
55
|
+
# @return [::Boolean]
|
|
56
|
+
# Optional. Whether to calculate tool correctness metrics for the
|
|
57
|
+
# evaluation.
|
|
58
|
+
class ToolCorrectnessMetricsConfig
|
|
59
|
+
include ::Google::Protobuf::MessageExts
|
|
60
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Configuration for the hallucination metrics for the evaluation.
|
|
64
|
+
# To disable the metric, set the message but do not set the
|
|
65
|
+
# `enable_hallucination_metrics` field to true (or explicitly set it to
|
|
66
|
+
# false). To unset the configuration and fallback to the default behavior,
|
|
67
|
+
# omit the message entirely.
|
|
68
|
+
# @!attribute [rw] enable_hallucination_metrics
|
|
69
|
+
# @return [::Boolean]
|
|
70
|
+
# Optional. Whether to calculate hallucination metrics for the evaluation.
|
|
71
|
+
class HallucinationMetricsConfig
|
|
72
|
+
include ::Google::Protobuf::MessageExts
|
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Configuration for the user goal met metrics for the evaluation.
|
|
77
|
+
# To disable the metric, set the message but do not set the
|
|
78
|
+
# `enable_user_goal_met_metrics` field to true (or explicitly set it to
|
|
79
|
+
# false). To unset the configuration and fallback to the default behavior,
|
|
80
|
+
# omit the message entirely.
|
|
81
|
+
# @!attribute [rw] enable_user_goal_met_metrics
|
|
82
|
+
# @return [::Boolean]
|
|
83
|
+
# Optional. Whether to calculate the user goal met metrics for the
|
|
84
|
+
# evaluation.
|
|
85
|
+
class UserGoalMetMetricsConfig
|
|
86
|
+
include ::Google::Protobuf::MessageExts
|
|
87
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Configuration for the expectation level metrics for the evaluation.
|
|
91
|
+
# To disable the metric, set the message but do not set the
|
|
92
|
+
# `enable_expectations_met_metrics` field to true (or explicitly set it to
|
|
93
|
+
# false). To unset the configuration and fallback to the default behavior,
|
|
94
|
+
# omit the message entirely.
|
|
95
|
+
# @!attribute [rw] enable_expectations_met_metrics
|
|
96
|
+
# @return [::Boolean]
|
|
97
|
+
# Optional. Whether to calculate the expectation level metrics for the
|
|
98
|
+
# evaluation.
|
|
99
|
+
class ExpectationsMetMetricsConfig
|
|
100
|
+
include ::Google::Protobuf::MessageExts
|
|
101
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Configuration for the golden metrics for the evaluation.
|
|
105
|
+
# @!attribute [rw] semantic_similarity_metrics_config
|
|
106
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::SemanticSimilarityMetricsConfig]
|
|
107
|
+
# Optional. Global configuration for semantic similarity metrics.
|
|
108
|
+
# @!attribute [rw] tool_correctness_metrics_config
|
|
109
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ToolCorrectnessMetricsConfig]
|
|
110
|
+
# Optional. Configuration for turn level tool correctness metrics.
|
|
111
|
+
# @!attribute [rw] step_tool_correctness_metrics_config
|
|
112
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ToolCorrectnessMetricsConfig]
|
|
113
|
+
# Optional. Configuration for step level tool correctness metrics.
|
|
114
|
+
class GoldenMetricsConfig
|
|
115
|
+
include ::Google::Protobuf::MessageExts
|
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Configuration for the scenario metrics for the evaluation.
|
|
120
|
+
# @!attribute [rw] user_goal_met_metrics_config
|
|
121
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::UserGoalMetMetricsConfig]
|
|
122
|
+
# Optional. Configuration for user goal met metrics.
|
|
123
|
+
# @!attribute [rw] expectations_met_metrics_config
|
|
124
|
+
# @return [::Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ExpectationsMetMetricsConfig]
|
|
125
|
+
# Optional. Configuration for expectation level metrics.
|
|
126
|
+
class ScenarioMetricsConfig
|
|
127
|
+
include ::Google::Protobuf::MessageExts
|
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Supported comparison types for checking the agent's response.
|
|
132
|
+
module ComparisonType
|
|
133
|
+
# Unspecified comparison type. Behavior defaults to SEMANTIC_SIMILARITY
|
|
134
|
+
# for agent responses and tool calls.
|
|
135
|
+
COMPARISON_TYPE_UNSPECIFIED = 0
|
|
136
|
+
|
|
137
|
+
# Exact string match.
|
|
138
|
+
EQUALS = 1
|
|
139
|
+
|
|
140
|
+
# Substring match (checks if the expected string is contained in the
|
|
141
|
+
# actual response).
|
|
142
|
+
CONTAINS = 2
|
|
143
|
+
|
|
144
|
+
# Semantic similarity match (evaluates meaning similarity using an LLM).
|
|
145
|
+
SEMANTIC_SIMILARITY = 3
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
end
|