Personal project · public or synthetic data
Multi-agent reporting
A LangGraph team turns a sales file into a business report; code refuses any report that quotes a number no tool produced.
Key results
- final reports verified
- 9 / 9
- first drafts already verified
- 8 / 9
- growth and declining products named
- 9 / 9
- supervisor decisions overridden by the guards
- 0
The supervisor decides; the code guards.
A supervisor, three agents, one verifier
A supervisor (LLM, structured output) picks the next agent. A statistics agent computes every indicator by calling three tools; an analyst interprets them; a writer drafts a four-part report. A verifier, written in code, refuses any report that quotes a number the tools never produced and sends it back to the writer with the list of numbers to remove.
Numbers are parsed in French formats ("438 000 €", "438 k€", "+33,8 %", "1,2 M€") and matched up to natural rounding; years and small counts are exempt. The interface shows each agent working, live, next to the report.
Nine companies with a known answer
The original sales file plus 8 synthetic companies, each with a product planted to grow and one to decline, so the right answer is computed, not judged. 9 / 9 final reports verified; 8 / 9 first drafts were already clean (the ninth quoted 109, a number no tool produced: refused, rewritten, verified). The growing product and every declining one were named in 9 / 9 reports.
About 6,000 tokens and 2 minutes per report, mostly waiting for the free tier’s rate limit.

From a prototype to something checkable
The first version was a LangChain prototype: agents wrapped as tools, results passed through global variables, no evaluation. The rewrite keeps the idea and adds an explicit state, guards in code (an agent whose inputs do not exist cannot run, a refused report goes back to the writer at most twice, 10 steps at most), and tests that run the whole graph with a scripted model.
Limitations
The verifier checks that a number exists, not that it is attached to the right product: that would need structured claims instead of free text. With four agents in a fixed order, the supervisor’s choices are predictable, and the recommendations themselves are not evaluated.