AI Cloud Architect

Evaluating Deep Agents using LangSmith on AWS

AWSHow-to by Jagdeep Singh Soni, Anuj Jauhari, Ajeet Tewari and Karan SinghAWS Artificial Intelligence Blog

This post combines learnings from LangChain’s work on evaluating deep agents and Anthropic’s guide to demystifying evals for AI agents into a practical guide. In this post, you will learn how to: 1) apply five evaluation patterns for deep agents, 2) build offline evaluations using pytest and LangSmith, and 3) configure online monitoring for production. The walkthrough uses a text-to-SQL deep agent with Amazon Bedrock for the full development to production lifecycle.

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

AI: Summary

What it is

Shows how to evaluate a text-to-SQL deep agent on Amazon Bedrock using LangSmith, with offline pytest evals before release and online evaluators to monitor production traces.

Who it is for

Teams building AI agents on Amazon Bedrock that need pre-production tests and production monitoring for agent reliability.

Key points

  • Five evaluation patterns for deep agents: custom logic per datapoint, single-step, full turns, multi-turn, and state checks.
  • Example agent uses Amazon Nova 2 Lite on Amazon Bedrock with a companion GitHub repository.
  • Online evaluators include a code-based SQL safety check and an LLM-as-judge answer quality score.

The same at other vendors

Different approach

GoogleHow-to

Evaluating AI agents: moving past the vibe check

AI:Both give a staged way to test and evaluate agents before release, but Google uses its open-source agent-eval toolkit where the AWS item uses LangSmith.