Gemini Enterprise for Customer Experience V1BETA API - Module Google::Cloud::Ces::V1beta::EvaluationMetricsConfig::ComparisonType (v0.2.0)
Stay organized with collections
Save and categorize content based on your preferences.
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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-11 UTC."],[],[]]