<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/test-agents-using-agents-rz2c2rksv" -->

---
title: Test Agents Using Agents | daily.dev
description: You can test an AI agent by having other agents play a simulated user and a judge, since agent output is language with no single correct answer. The pipeline...
canonical: https://daily.dev/posts/test-agents-using-agents-rz2c2rksv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Test Agents Using Agents | daily.dev
og:description: You can test an AI agent by having other agents play a simulated user and a judge, since agent output is language with no single correct answer. The pipeline...
og:url: https://daily.dev/posts/test-agents-using-agents-rz2c2rksv
og:image: https://api.daily.dev/og/posts/rz2c2rKSV.png
og:image:alt: Test Agents Using Agents
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Test Agents Using Agents

**[Daily Dose of Data Science \| Avi Chawla \| Substack](https://daily.dev/sources/dailydoseofds)** · 8 min read · 0 upvotes · 0 comments

## Summary

You can test an AI agent by having other agents play a simulated user and a judge, since agent output is language with no single correct answer. The pipeline uses CrewAI for agent orchestration, LangWatch Scenario to build the eval pipeline, and PyTest as the test runner. Your agent class inherits from AgentAdapter and defines a call() method. The Judge Agent scores the exchange against natural-language criteria. In the demo it failed the run because it could not be determined if the location was under 4 hrs away, so the fix is to prompt the agent to ask for the location. The newsletter also covers activation checkpointing, which can reduce memory to about sqrt(M) with typically 15-25% more run-time, and promotes a lifetime membership sale.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.dailydoseofds.com/p/test-agents-using-agents-528>

## Questions this post answers

### How do I test an AI agent when there is no single correct output?

Test the agent with other agents: a User Simulator Agent talks to the agent under test, and a Judge Agent evaluates the exchange against criteria written in natural language. Because agents respond in language rather than fixed outputs, traditional exact-match testing does not fit. LangWatch Scenario orchestrates the simulation and PyTest runs it.

_Developers shipping LLM agents follow testing approaches like this on daily.dev._

### How do I set up an agent for testing with the LangWatch Scenario library?

Your agent class should inherit from the AgentAdapter class and define a call() method that takes the input and returns the output. In the test, scenario.run takes a name, a description, and the three agents: the agent under test, a User Simulator Agent, and a Judge Agent. Run it with uv run pytest -s test_travel_agent.py.

_Teams wiring up agent evals keep up with Scenario-style tooling on daily.dev._

### What are the trade-offs of activation checkpointing when training large neural networks?

Activation checkpointing stores only the first layer's activations in each network segment and recomputes the rest during backpropagation. This typically cuts memory usage to sqrt(M), where M is the usage without it. The cost is 15-25% more run-time, which a larger batch size can partly offset. In PyTorch it is applied with checkpoint_sequential.

_Engineers squeezing large models into limited memory find training tricks like this on daily.dev._

## Similar posts on daily.dev

- [Your Agent Passed the Demo. Here’s How I Find Out If It Still Works Next Week.](https://daily.dev/posts/your-agent-passed-the-demo-here-s-how-i-find-out-if-it-still-works-next-week--tuhjxr58a) · Medium · 1 upvotes · 0 comments
- [Evaluating AI agents: moving past the vibe check](https://daily.dev/posts/evaluating-ai-agents-moving-past-the-vibe-check-a4tuqyjqx) · Google Developers · 16 upvotes · 1 comments
- [Building an AI Agent in 6 Weeks \(and Finally Understanding How They Work\)](https://daily.dev/posts/building-an-ai-agent-in-6-weeks-and-finally-understanding-how-they-work--bcuoxcenf) · Planet Python · 17 upvotes · 0 comments
- [What Are AI Agent Evaluations and Why Do They Matter?](https://daily.dev/posts/what-are-ai-agent-evaluations-and-why-do-they-matter--fqzgqmn1d) · Telerik · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#ai-agents](https://daily.dev/tags/ai-agents), [#crewai](https://daily.dev/tags/crewai)

[View this post on daily.dev](https://daily.dev/posts/test-agents-using-agents-rz2c2rksv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Test Agents Using Agents","url":"https://daily.dev/posts/test-agents-using-agents-rz2c2rksv","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/test-agents-using-agents-rz2c2rksv"},"datePublished":"2026-11-27T22:13:01.398Z","dateModified":"2026-11-27T22:13:23.127Z","description":"You can test an AI agent by having other agents play a simulated user and a judge, since agent output is language with no single correct answer. The pipeline...","image":"https://media.daily.dev/image/fetch/s--3UCHiBNI--/f_auto,pg_1,q_auto/https://substackcdn.com/image/fetch/%24s_%21Tw5X%21%2Cw_1200%2Ch_675%2Cc_fill%2Cf_jpg%2Cq_auto:good%2Cfl_progressive:steep%2Cg_auto/https%253A%252F%252Fsubstack-post-media.s3.amazonaws.com%252Fpublic%252Fimages%252Ff93849be-1746-4083-bb52-b6c875791a0d_1264x1108.gif?_a=BAMAMiiw0","thumbnailUrl":"https://media.daily.dev/image/fetch/s--3UCHiBNI--/f_auto,pg_1,q_auto/https://substackcdn.com/image/fetch/%24s_%21Tw5X%21%2Cw_1200%2Ch_675%2Cc_fill%2Cf_jpg%2Cq_auto:good%2Cfl_progressive:steep%2Cg_auto/https%253A%252F%252Fsubstack-post-media.s3.amazonaws.com%252Fpublic%252Fimages%252Ff93849be-1746-4083-bb52-b6c875791a0d_1264x1108.gif?_a=BAMAMiiw0","isAccessibleForFree":true,"articleSection":"Daily Dose of Data Science | Avi Chawla | Substack","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Daily Dose of Data Science | Avi Chawla | Substack","logo":"https://media.daily.dev/image/upload/s--4IHQgTOw--/f_auto/v1710503712/logos/dailydoseofds","url":"https://daily.dev/sources/dailydoseofds"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/test-agents-using-agents-rz2c2rksv","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,ai-agents,crewai","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Daily Dose of Data Science | Avi Chawla | Substack","item":"https://daily.dev/sources/dailydoseofds"},{"@type":"ListItem","position":3,"name":"Test Agents Using Agents"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/test-agents-using-agents-rz2c2rksv#faq","mainEntity":[{"@type":"Question","name":"How do I test an AI agent when there is no single correct output?","acceptedAnswer":{"@type":"Answer","text":"Test the agent with other agents: a User Simulator Agent talks to the agent under test, and a Judge Agent evaluates the exchange against criteria written in natural language. Because agents respond in language rather than fixed outputs, traditional exact-match testing does not fit. LangWatch Scenario orchestrates the simulation and PyTest runs it. Developers shipping LLM agents follow testing approaches like this on daily.dev."}},{"@type":"Question","name":"How do I set up an agent for testing with the LangWatch Scenario library?","acceptedAnswer":{"@type":"Answer","text":"Your agent class should inherit from the AgentAdapter class and define a call() method that takes the input and returns the output. In the test, scenario.run takes a name, a description, and the three agents: the agent under test, a User Simulator Agent, and a Judge Agent. Run it with uv run pytest -s test_travel_agent.py. Teams wiring up agent evals keep up with Scenario-style tooling on daily.dev."}},{"@type":"Question","name":"What are the trade-offs of activation checkpointing when training large neural networks?","acceptedAnswer":{"@type":"Answer","text":"Activation checkpointing stores only the first layer's activations in each network segment and recomputes the rest during backpropagation. This typically cuts memory usage to sqrt(M), where M is the usage without it. The cost is 15-25% more run-time, which a larger batch size can partly offset. In PyTorch it is applied with checkpoint_sequential. Engineers squeezing large models into limited memory find training tricks like this on daily.dev."}}]}
```

