EvaluationMetricsConfig.ComparisonType

Supported comparison types for checking the agent's response.

Enums
COMPARISON_TYPE_UNSPECIFIED Unspecified comparison type. Default behavior depends on the expectation type: defaults to SEMANTIC_SIMILARITY for golden expectations (agent responses and tool calls), and defaults to CONTAINS for scenario expectations.
EQUALS Exact string match.
CONTAINS Substring match (checks if the expected string is contained in the actual response).
SEMANTIC_SIMILARITY Semantic similarity match (evaluates meaning similarity using an LLM).
CONTAINS_ANY Substring match with OR semantics for agentResponse expectations (case-insensitive check that any non-blank trimmed text or transcript chunk in agentResponse.chunks is contained in the actual response).