The agent worked fine. It cost $4,260.
Nothing failed. The loop just paid for its own history, twelve times per task.
What you'll learn
- Why an agent loop’s input tokens grow with the square of its step count
- What prompt caching actually charges — reads at 0.1×, writes at 1.25×
- The one line that silently stops the cache being read, with no error
Share this passage
Drawing…
Understand it one step at a time
The short runs these in order in about 51 seconds. Here they are written out — pick any step to jump the short straight to it.
Free app · no app store
These are built for a phone
Every short is drawn at full portrait height, the shape a phone already is. Installed, it opens full-bleed with no address bar across the top — and the whole library reads offline.
Read deeper on Azure
Twenty seconds gets the shape of an idea across. These go into how it behaves in production.
-
What Is Microsoft Foundry (Azure AI Foundry)? The Services, and When You Actually Need Them
A plain tour of Microsoft Foundry for developers: the resource, projects, models, agents, tools, and when Azure OpenAI on its own is enough.
More shorts
-
Azure
The queue was in order. Your workers were not.
12 steps · 50s
-
Azure
The outage lasted 18 minutes. Your retries lasted 4 seconds.
12 steps · 50s
-
Azure
You tapped View Product.
12 steps · 50s
Get new posts by email
New technical articles, Azure AI and GitHub Copilot updates, and upcoming events. No spam, unsubscribe anytime.