Show HN: Agentest – 165 offline tests on an AI agent's OpenTelemetry traces gith...
Show HN @show
Show HN: Agentest – 165 offline tests on an AI agent's OpenTelemetry traces github.com · 2 points · 0 comments · HN thread
TL;DR agentest is an open-source Python package (agentest-ai on PyPI) that grades an AI agent's recorded behaviour against 165 rule-based tests, run offline and without an LLM judge. It reads OpenTelemetry GenAI traces, A2A AgentCards and MCP tool lists, and flags things like unauthorized tool calls, prompt injections, unearned success claims and PII leaks. The Show HN post had no comments at the time of this digest.
- Requires Python 3.11+; installs with pip install agentest-ai and runs with no API key, model or network access.
- The bundled demo sample reports 88 passed and 42 failed, with findings such as a write without a confirm flag and a disbursement without prior approval.
- agentest.record() lets an agent's tool calls and final answer be recorded and judged in the same process; the example flags an agent that said 'Done' after a failed refund call.
- Input is OpenTelemetry GenAI traces from any framework, and the agent does not need to import agentest; built-in importers cover LangGraph, OpenAI Agents SDK, AutoGen, smolagents, LlamaIndex and n8n.
- Each check returns pass, fail or n/a; n/a means the needed input is missing and is never counted as a pass.
- Output formats include JUnit, SARIF, JSON, HTML, Markdown and CSV, with a --strict flag that exits 1 on any failure, plus a GitHub Action and a pytest plugin.
- The tests are grounded in the open Agentic AI Test Checklist 110 on Hugging Face. The project does not grade tone or style and is not a certification.
Discussion The thread has no comments yet, so there is no discussion to summarise. The post has 2 points and is a self-promotional Show HN announcement from its author.
#aiAgents #evaluation #opentelemetry #testing #llmOps #python