Gemini Enterprise for Customer Experience V1BETA API - Module Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ComparisonType (v0.2.0)
Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API module Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ComparisonType.
Supported comparison types for checking the agent's response.
Constants
COMPARISON_TYPE_UNSPECIFIED
value: 0 Unspecified comparison type. Behavior defaults to SEMANTIC_SIMILARITY
for agent responses and tool calls.
EQUALS
value: 1 Exact string match.
CONTAINS
value: 2 Substring match (checks if the expected string is contained in the
actual response).
SEMANTIC_SIMILARITY
value: 3 Semantic similarity match (evaluates meaning similarity using an LLM).
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-11 UTC."],[],[]]