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).