AWS: prompt caching patterns for OpenAI models on Amazon Bedrock
The guide explains that every agent step resends the full history, including tool definitions, instructions and past results, so cost grows each turn. Prompt caching reuses the stable part of the prompt at a fraction of the input price. It walks through…
Why it matters
Ordering prompt sections correctly can cut long-running agent costs several times over.
What happened
1 min readThe guide explains that every agent step resends the full history, including tool definitions, instructions and past results, so cost grows each turn. Prompt caching reuses the stable part of the prompt at a fraction of the input price. It walks through caching patterns across an agent's life, from the first turn to adding tools and spawning helpers, using OpenAI models on Bedrock.
Our analysis
The principles apply to any provider: put stable content first and volatile content last. The small news angle is that OpenAI models on Bedrock support prompt caching. A good explainer for anyone new to agent costs.