Back to portfolio

Case study · RUTool benchmark · Research · LLM evaluation

Do AI agents act correctly in Roman Urdu?

Hundreds of millions of people type to businesses the way they speak: “bhai kal wala order cancel kar do”. RUTool measures whether AI agents take the right action on those messages: the right tool, exactly the right arguments, or a question when something is missing.

Type
Benchmark + paper
Built with
Python · pytest · Groq
Scope
4 domains, 25 tools
Status
Model runs in progress

01The problem

“Kal” means yesterday and tomorrow.

Businesses are putting AI agents on WhatsApp and web chat. Their customers write in Roman Urdu and Hinglish, where “kal” is both yesterday and tomorrow, “paune do lakh” is 175,000, and lakh and crore replace thousands and millions.

For an agent that can cancel orders or move money, a misread isn’t a bad answer, it’s a wrong action. So the benchmark scores actions, not text.

02Design

Four behaviours, scored separately.

Cases span four domains and 25 tools: an online shop, a clinic, a wallet, and a small-business back office, each tool a JSON Schema with a deterministic mock. Every case expects one of four behaviours.

  • call

    Call the right tool with exactly the right arguments.

  • clarify

    Something’s missing or ambiguous: ask, don’t act.

  • refuse

    Someone else’s data, medical advice, fraud, or no tool for it.

  • no_call

    Chit-chat: don’t touch a tool.

The phenomena that break agents are tagged and scored on their own: relative dates, sawa / dedh / paune / dhai, lakh and crore, spelling variants, code-mixing, negation, two requests in one message, and references to earlier turns. Paired English controls measure the gap.

03Scoring

Deterministic scoring, checked against itself.

Arguments are normalised before comparison (1,50,000 = 150000, case, Unicode spaces), and the headline numbers include a wrong-action rate (acting when it should have asked or refused) and a hallucinated-argument rate, with 95% confidence intervals resampled by seed.

An oracle self-check answers every case with its own gold answer through the real runner, mocks and scorer, and must score 100%. 195 of 195 cases and all 423 preview variants pass, and it runs in CI.

25 tools in 4 domains

195 seed cases

390+ automated tests

04Where it stands

No results until they’re real.

Version 1 evaluates free open models on Groq. The runs haven’t finished, so the README says “TBD” and every number in the paper is generated from saved runs, not typed in. One candidate model was dropped after the smoke test because it doesn’t support tool calling.

A literature check found two projects already testing tool calling in Hinglish or Roman Urdu, so the paper never claims to be first, and a test enforces that. Seeds were drafted with AI help and approved or edited by a native speaker; the test split stays private to limit contamination.

The announcement post passed 40,000 impressions on LinkedIn.

Hiring a remote engineer? Let’s talk.

Available for remote full-stack and Python/AI roles, 30–40 hrs/week.