- Archived full text: Full archived text, with credits
- Link: https://strandsagents.com/docs/user-guide/evals-sdk/evaluators/faithfulness_evaluator/
What it says
Strands Agents ships a FaithfulnessEvaluator that scores the most recent agent turn against the full conversation history, including tool executions, rather than against a single retrieved context window. It uses a five-level categorical scale (Not At All 0.0 to Completely Yes 1.0), passes at >= 0.5, and returns step-by-step reasoning plus a categorical label. It is trace-level (evaluates the last agent response), requires OpenTelemetry trajectory capture, and is designed for multi-turn conversations where the agent’s claims must stay faithful to tool-call outputs and prior turns.
Claims drawn from this source
- Faithfulness is trace-level for agents. The evaluator operates at TRACE_LEVEL and evaluates the most recent turn in the conversation (the last agent response and its context), not the whole trajectory.
- The judge checks statements against conversation history, not just the latest context. The evaluator examines conversation history (all prior messages and tool executions) and the assistant’s response, and determines whether claims are supported by the history.
- Scoring is categorical, not a single grounded/ungrounded binary. It uses a five-level scale: Not At All (0.0), Not Generally (0.25), Neutral/Mixed (0.5), Generally Yes (0.75), Completely Yes (1.0). A response passes if score >= 0.5.
- Evaluation depends on complete telemetry. Best practices require OpenTelemetry trajectory capture with complete context (all messages and tool executions); missing traces cause empty results.
- Common patterns: fabrications, tool-result validation, multi-turn consistency. Pattern 2 validates that agents accurately represent information from tool calls; Pattern 3 checks consistency across conversation turns.
- False negatives and false positives are known failure modes. Overly strict evaluation can mark reasonable inferences as unfaithful; the fix is to review the system prompt and decide whether reasonable inferences are expected.
- It is paired with adjacent evaluators, not a substitute for them. Related evaluators include HelpfulnessEvaluator, OutputEvaluator, ToolParameterAccuracyEvaluator, and GoalSuccessRateEvaluator; faithfulness should be combined with output-quality evaluators.