AI Cloud Architect

AI Agent Failure Detection and Root Cause Analysis with Strands Evals

AWSHow-to by Po-Shin Chen, Aaron Farntrog, Abhishek Kumar, JJ Cho, Muhyun Kim and Ninad KulkarniAWS Artificial Intelligence Blog

In this post, we walk you through calling the detector functions to diagnose real agent failures. You learn how to interpret their structured output: categorized failures with confidence scores, causal chains linking root causes to downstream symptoms, and fix recommendations specifying whether a change belongs in your system prompt or tool definitions. You also learn how to integrate detection into your evaluation pipeline for automated diagnosis on every test run.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Strands Evals detectors diagnose agent traces by listing categorized failures with confidence scores, then linking root causes to fixes in the system prompt or tool descriptions.

Who it is for

Teams running Strands agents on Bedrock that need to find why test runs fail, not just that they fail.

Key points

  • Failure detection and root cause analysis are separate functions; diagnose_session runs both together.
  • DiagnosisConfig with ON_FAILURE trigger runs diagnosis only on failing test cases in CI/CD.
  • Detector calls use Amazon Bedrock inference and CloudWatch Logs, both of which incur charges.

The same at other vendors

Timeline

Posts about Strands Evals, oldest first.

  1. Read firstEvaluating AI agents for production: A practical guide to Strands Evals · AWS · How-to
  2. How-toSimulate realistic users to evaluate multi-turn AI agents in Strands Evals · AWS · How-to
  3. Blog postMultimodal evaluators: MLLM-as-a-judge for image-to-text tasks in Strands Evals · AWS · Blog post
  4. This postAI Agent Failure Detection and Root Cause Analysis with Strands Evals

Go deeper