[01]
Architecture
A small team of agents, not one big prompt.
Early on the obvious move was “one model, one prompt, one pass.” That breaks the moment the model gets a passport photo upside down or sees an email it’s never seen before. I split the work into specialised agents— one reads documents, one drafts the rebuttal, one decides when to escalate to a human, one judges the output.
The agents talk through a typed event bus, not a tangled chain. Each one is testable in isolation, and any one of them can be swapped (or quietly rolled back) without touching the others.
- Document agent reads, classifies, extracts structured data
- Drafting agent composes the airline rebuttal with citations
- Routing agent decides what a human should see
- Judge agent scores the output before it’s sent