Medium · Each agent’s job, and one door to the model
Paying by the word, not by the question
A one-line question and a season of notes use very different amounts of work, so counting questions misleads Milo. A model reads and writes in small pieces of words, and each piece is a token. The AI gateway counts each agent’s tokens against its budget. An agent that hits its budget stops, and Milo is told which agent it was.
Example
Monday at Maple Mart, from the AI gateway’s count order agent 40 short orders 9,000 tokens stock agent reread the whole season’s waste log 120,000 tokens The stock agent’s budget is 100,000 tokens a day, so it stopped before noon. Fix: read only yesterday’s page of the waste log.
Try it Yourself
Which agent spent more tokens on Monday: the order agent or the stock agent? Type the name.
Exercise
The basil order did not go through. Where should Grace and Milo look?