Medium · Who owns what, and one door for model calls
One door for every model call
Every agent decision is a model call, and across Maple Mart they add up. An AI gateway is one shared door for all of them: apps call it, and it calls the model. It checks who is asking and how much budget is left, then picks the model. It can switch providers when one is down, hide a card number, and keep a receipt.
Example
Before, at Maple Mart till helper, order agent, report helper: each holds its own key each picks its own model, so trying another one means three edits card numbers were hidden by the till helper only After: one request from the till helper who is asking -> budget left -> hide card numbers -> pick a model (another provider if one is down) -> receipt: app, model, time taken, spend
Try it Yourself
Write where the till helper sends its model request now.
Exercise
Every app now goes through one gateway. What must Milo watch?