Cost Control for AI Agents: A Budget for Each Agent
One agent in a loop used 88 percent of a made-up day's spend, and nothing stopped it.
Video #244 ยท Enterprise architecture and AI agents
Steps in the video
Files
- budget.py (27 lines)
- compare.py (20 lines)
- traffic.py (7 lines)
Tested with
Python 3.12.15
What this does not show
Made-up prices, traffic and budgets on one laptop; the 88 percent and the 54 refusals follow from the loop length and the limits I chose; no real agent, model or router was run.
Sources
Learning IT by Example.