Uses of Interface
com.tnsai.evaluation.spi.Evaluator
Packages that use Evaluator
Package
Description
Layer 2: Benchmark engine for running test datasets, collecting results,
and detecting regressions against saved baselines.
Layer 1: Evaluators that score agent behavior on specific dimensions.
Agent-tier evaluators (TNS-373).
G-Eval: LLM-as-judge evaluation using chain-of-thought scoring.
Multi-turn conversation evaluation metrics.
RAG (Retrieval-Augmented Generation) evaluation metrics.
Safety evaluation metrics for LLM outputs.
-
Uses of Evaluator in com.tnsai.evaluation.benchmark
Methods in com.tnsai.evaluation.benchmark with parameters of type EvaluatorModifier and TypeMethodDescriptionMethod parameters in com.tnsai.evaluation.benchmark with type arguments of type Evaluator -
Uses of Evaluator in com.tnsai.evaluation.bridge
Methods in com.tnsai.evaluation.bridge with parameters of type EvaluatorModifier and TypeMethodDescriptionMethod parameters in com.tnsai.evaluation.bridge with type arguments of type Evaluator -
Uses of Evaluator in com.tnsai.evaluation.evaluators
Classes in com.tnsai.evaluation.evaluators that implement EvaluatorModifier and TypeClassDescriptionclassBase for single-call LLM-as-judge evaluators: build one prompt, send it to theLLMJudgeonce, parse the verdict.final classEvaluates cost efficiency: cost per successful task completion.final classEvaluates whether the agent followed given instructions.final classEvaluates JSON correctness of agent output — parse validity, required fields, and type conformance.final classEvaluates response quality across three dimensions: relevance, completeness, and accuracy.final classEvaluates whether the agent selected the correct tools in the right order. -
Uses of Evaluator in com.tnsai.evaluation.evaluators.agent
Classes in com.tnsai.evaluation.evaluators.agent that implement EvaluatorModifier and TypeClassDescriptionfinal classAgent-tier metric: did the agent stick to its declared plan?final classAgent-tier metric: did the agent reach the goal without burning extra tool calls?final classAgent-tier metric: did the agent's final state actually solve the task?final classAgent-tier metric: were the tools the agent invoked semantically appropriate for the task? -
Uses of Evaluator in com.tnsai.evaluation.evaluators.geval
Classes in com.tnsai.evaluation.evaluators.geval that implement EvaluatorModifier and TypeClassDescriptionfinal classG-Eval: LLM-as-judge evaluator using a 2-step chain-of-thought process. -
Uses of Evaluator in com.tnsai.evaluation.evaluators.multiturn
Classes in com.tnsai.evaluation.evaluators.multiturn that implement EvaluatorModifier and TypeClassDescriptionfinal classMeasures whether a multi-turn conversation achieved its stated goal.final classMeasures whether the agent retains information from earlier conversation turns.final classMeasures whether the last assistant turn is relevant to the preceding conversation context. -
Uses of Evaluator in com.tnsai.evaluation.evaluators.rag
Classes in com.tnsai.evaluation.evaluators.rag that implement EvaluatorModifier and TypeClassDescriptionfinal classMeasures whether the agent's response actually addresses the user's query.final classMeasures whether retrieved documents are relevant to the query.final classMeasures whether all relevant information needed for the answer was retrieved.final classMeasures whether the agent's response is grounded in retrieved documents. -
Uses of Evaluator in com.tnsai.evaluation.evaluators.safety
Classes in com.tnsai.evaluation.evaluators.safety that implement EvaluatorModifier and TypeClassDescriptionfinal classDetects demographic, cultural, or ideological bias in agent responses.final classDetects hallucinated content in agent responses by checking factual claims against provided context.final classDetects PII leakage in agent responses using regex + checksum validation.final classDetects toxic, harmful, or offensive content in agent responses. -
Uses of Evaluator in com.tnsai.evaluation.junit
Methods in com.tnsai.evaluation.junit with parameters of type EvaluatorModifier and TypeMethodDescriptionEvalAssert.assertEval(String agentOutput, Evaluator... evaluators) Runs evaluators against the agent output and returns an assertion chain.Runs evaluators with additional metadata (tool sequences, latency, etc.).