Test your AI agents
like you test your code

88% of Agent projects fail because they lack evaluation infrastructure. agenttest gives you familiar test syntax to assert Agent behavior — intents, entities, sentiment, PII, hallucinations, and more.

import { agentTest, expect } from '@agenttest/core'

agentTest('customer service agent handles refund', async (agent) => {
  const response = await agent.send('I want a refund for order #1234')

  expect(response).toMentionIntent('refund')
  expect(response).toContainEntity('orderNumber', '1234')
  expect(response).toHaveSentiment('empathetic')
  expect(response).not.toContainPII()
  expect(response).toRespondWithin(5000)         // 5 seconds
  expect(response).not.toHallucinate()      // grounded in context
})

Intent Detection

Verify your agent recognizes the right intent from user messages — refund, tracking, complaint, escalation.

Entity Extraction

Assert that your agent correctly identifies entities like order numbers, emails, and customer names.

Sentiment Analysis

Ensure your agent responds with the right tone — empathetic, positive, neutral — matching the situation.

PII Detection

Catch leaked SSNs, credit cards, and phone numbers before they reach your users.

Hallucination Guard

Detect when your agent invents facts not grounded in the provided context.

Mock LLM

Deterministic LLM mocks for unit testing — fast, repeatable, no API calls needed.

Pricing

Free

$0/mo
  • 100 test runs/month
  • Console reporter
  • Community support
Preview Status

Team

$99/mo
  • Unlimited test runs
  • All reporters
  • Dashboard + API
  • A/B comparison
  • Priority support
Preview Status

Cloudflare Preview Is Online

This Pages deployment is documentation and a product preview. It does not accept test runs, JWT credentials, SQLite data, Stripe payments, or API keys. Run the SDK locally with bun test; connect the existing Docker dashboard through Cloudflare Tunnel before enabling accounts.