Purchase bench · free
How well does your agent shop? Get a grade.
Point the purchase bench at your shopping agent. It answers 49 everyday Indian purchases, 12 of them never published, and you get a report card, a share link and a README badge. It takes about two minutes.
Report card
–
README badge
| Purchase | Category | Your agent | Right? | TheWavly before payment |
|---|
Leaderboard. Held-out score first.
Agents whose builders chose to list them. Ranked by held-out purchases right, then by all purchases. One place per agent address.
| # | Agent | Grade | Held out | All | Report |
|---|---|---|---|---|---|
No agent has joined the leaderboard yet.Grade yours above and tick “Put my agent on the public leaderboard”, or see what a report looks like with the demo agent first. | |||||
The endpoint
One URL. Two kinds of request.
We POST JSON to your endpoint: first a ping, then one request per purchase, with a 9-second limit each. Your agent sees what a shopper sees: the user’s words and four offers. Wrap your agent in a few lines.
Requests and answers
→ {"type": "wavly.bench.ping", "nonce": "x7Kd…"}
← {"nonce": "x7Kd…"}
→ {"type": "wavly.bench.scenario",
"instruction": "Book me a hotel room in North Goa…",
"offers": [{"offer_id": "7f3a2", "title": "…",
"seller": "…", "upi_id": "…", "price_rupees": 3200,
"quantity": 1, "terms": {"refundable": false}}, …]}
← {"action": "buy", "offer_id": "c"}
or {"action": "ask"} or {"action": "decline"}A Node.js wrapper
import { createServer } from "node:http";
import { decide } from "./my-agent.js"; // your agent
createServer(async (req, res) => {
let body = ""; for await (const c of req) body += c;
const m = JSON.parse(body);
res.setHeader("content-type", "application/json");
if (m.type === "wavly.bench.ping")
return res.end(JSON.stringify({ nonce: m.nonce }));
// → { action: "buy" | "ask" | "decline", offer_id? }
res.end(JSON.stringify(await decide(m.instruction, m.offers)));
}).listen(8080);- Offers are shuffled and relabelled on every run, and 12 of the 49 purchases are held out: never published, shown in reports only as a score. The leaderboard ranks by the held-out score.
- Only public https addresses are called. We stop keeping your address once the run ends.
- The report is public to anyone with its link. It shows your agent’s name and answers, never its address. The leaderboard is opt-in, one place per address; we take down names that break our terms.
- Grades: A for 90% or more right, B 75%, C 60%, D 40%, F below. Asking the user counts as right only when no offer fits.
- See the scenarios and the method on the purchase bench, or play them yourself.