Skip to main content

Evaluators

Evaluators score the traces of your agents. An organization has built-in evaluators, and you can create custom evaluators. You use evaluators in monitors. For information on how evaluation works, see Evaluation.

Evaluator types​

Custom evaluators that you create are one of the following types:

TypeDescriptionShown as
CodeA Python function that evaluates traces programmatically.Rule-based
LLM JudgeAn LLM that assesses traces with a natural language prompt.LLM Judge

To create a custom evaluator, see Create a Custom Code Evaluator or Create a Custom LLM Judge Evaluator.

Evaluation levels​

LevelDescriptionObject that the evaluator receives
TraceEvaluates the full end-to-end trace.Trace
AgentEvaluates each agent individually within a trace.AgentTrace
LLMEvaluates individual LLM calls within a trace.LLMSpan

View evaluators​

  1. At the organization level, in the left navigation, under Evaluation, click Evaluators.
  2. To find an evaluator, enter its name in Search evaluators. To show only built-in or only custom evaluators, select Built-in or Custom in the filter list. Both are selected by default.

Each evaluator is listed with the following:

ItemDescription
NameThe name of the evaluator.
CustomShown for custom evaluators.
Evaluation levelWhat the evaluator scores: Trace, Agent, or LLM.
TypeRule-based or LLM Judge.
DescriptionWhat the evaluator checks.
TagsTags that categorize the evaluator, for example quality, efficiency, safety, or tool-use.

To view the details of an evaluator, click it. The details page shows the evaluator's description, its Source Code or Prompt Template, its Tags, and its Configuration Parameters with their Type, Description, Default, and whether they are Required.

Custom evaluators have edit and delete icons on the Evaluators page. Built-in evaluators cannot be edited or deleted.

Built-in evaluators​

The following table lists some of the built-in evaluators. The Evaluators page lists all of them.

EvaluatorEvaluation levelTypeWhat it checks
Length ComplianceTraceRule-basedWhether the output length is within the configured minimum and maximum number of characters.
Iteration EfficiencyAgentRule-basedWhether the agent completed within its iteration limit, measured by the number of LLM calls.
Latency PerformanceTraceRule-basedThe execution speed against a configurable time limit.
Content SafetyTraceRule-basedWhether the output contains prohibited strings or patterns.
Content CoverageTraceRule-basedHow many of the required strings and patterns the output contains.
Tool CoverageAgentRule-basedHow many of the required tools were called at least once.
Step Success RateAgentRule-basedThe proportion of tool execution steps that completed without errors.
Token EfficiencyTraceRule-basedThe total token usage against a configurable limit.
Sequence AdherenceAgentRule-basedHow closely the order of tool calls matches the expected order.
AccuracyTraceLLM JudgeThe factual correctness of the response.
ClarityTraceLLM JudgeThe readability and structure of the response, and whether it is free of ambiguity.
CoherenceLLMLLM JudgeThe logical flow, consistency, and structure of each LLM call.

For example, Length Compliance has the following configuration parameters:

ParameterTypeDescriptionDefaultRequired
max_lengthintegerThe maximum acceptable length.10000No
min_lengthintegerThe minimum acceptable length.1No

Was this page helpful?