Agents
AI agents that act in a company's own systems, each tested before and after the fixes.
Three agents for Acme Invoicing, a made-up company: one talks to customers, one works the billing inbox, one answers staff over private data. Each is built on Pydantic AI and comes with a public test report and the code. The company is made up so every test can be published: real runs, fake customers.
Support bot · customers
A support bot that refunds only what the policy allows
It answers from a 25-page help centre and acts on customers' accounts. Refunds the policy didn't allow: 14 of 90 conversations, then 0. Tricks that worked: 9 of 48, then 0. Normal requests handled: 33 of 42, then 42 of 42.
Email agent · billing inbox
An email agent that pays, refunds and replies only where it should
It answers customers, refunds and pays supplier invoices from the inbox. A customer's card ending sent to a stranger's address: 3 of 57 runs, then 0. With a model that obeyed every trick, 10 of 10 got through, then 0.
Assistant · private data
An assistant that shows each person only what their role allows
Staff ask it about customers and company documents. Data a person's role can't see, handed to the model by a tool: 66 of 120 conversations, then 0. Tricks that got it to the wrong role: 12 of 60, then 0.
What every report shows
- Two versions of the agent: the usual first build (rules in the prompt, tools that reach everything) and the same agent after the fixes.
- Normal work and tricks, scored from what happened: refunds made, payments sent, records changed, data shown to whom. Each trick has a twin task, so an agent that refuses everything fails.
- The worst failures, word for word, each with the fix and whether code or instructions enforce it.
- What the tests don't cover, and one command to rerun them.
If you have an agent like one of these
The same tests work on another agent, on any model or framework: they act the way a customer, a sender or a colleague does and score what the agent did. They need a test copy with fake accounts, not live systems or real data. To build one: an agent that does real work. To test one you have: your agent, tested and fixed.
A line on what your agent does, or should do, is enough to start: [email protected].