Playwright for AI Agents — Test, secure, and observe your AI agents with the same rigor you test your UI.
You test your UI. You test your API. You test your database queries. But who tests your AI agent?
Your agent decides which tools to call, what data to trust, and how to respond. One bad prompt leaks PII. One missed tool call breaks your workflow silently. One jailbreak and your agent says things your company would never approve.
AgentProbe fixes this: define expected behaviors in YAML, run them against any LLM, get deterministic pass/fail results.
Most LLM testing tools focus on prompt evaluation. AgentProbe tests the full agent lifecycle:
- Tool call verification — Mock tools, inject faults, verify call sequences
- Security scanning — Prompt injection, jailbreak, PII leak detection
- Chaos testing — Timeouts, malformed responses, rate limits
- Multi-agent orchestration — End-to-end workflow testing
- Contract testing — Schema + behavioral contracts
- Compliance — Built-in GDPR, SOC2, HIPAA, PCI-DSS frameworks
- MCP security analysis — Scan Model Context Protocol tool definitions
- Performance profiling — Latency percentiles, cost tracking, bottleneck detection
- 16+ assertion types — From simple
response_containstollm_judge
┌─────────────────────────── AgentProbe CLI ───────────────────────────┐
│ (run, record, security, compliance, ...) │
├─────────────────────────── Test Runner ──────────────────────────────┤
│ YAML Suites │ TypeScript SDK │ Natural Language │
├─────────────────────────── Core Engine ──────────────────────────────┤
│ Evaluator │ Recorder │ Profiler │ Security │ Mocks │ Chaos │ ... │
├─────────────────────────── Adapter Layer ────────────────────────────┤
│ OpenAI │ Anthropic │ Google │ Bedrock │ Azure │ Cohere │ ... │
├─────────────────────────── Reporters ────────────────────────────────┤
│ Console │ JSON │ JUnit │ HTML │ OpenTelemetry │
└──────────────────────────────────────────────────────────────────────┘
| Page | Description |
|---|---|
| Getting Started | Install, write first test, run it in 3 minutes |
| Writing Tests | YAML test format, all assertion types, examples |
| Tool Mocking | Mock tools, fault injection, chaos testing |
| Security Testing | Prompt injection, PII detection, MCP analysis |
| Contract Testing | Agent contracts, verification, CI integration |
| Adapters | All 11 adapters: setup, config, examples |
| CLI Reference | Full CLI command reference |
| CI/CD | GitHub Actions, GitLab CI, Jenkins integration |
| Compliance | GDPR, SOC2, HIPAA, PCI-DSS audit framework |
| Advanced | Benchmarks, profiling, NL assertions, git integration |
| FAQ | Common questions and answers |