← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Prompt Caching Patterns for OpenAI Models on Amazon Bedrock to Reduce AI Agent Costs

🔄 Updated 11d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • AI agents re-send full context to LLMs for each turn.
  • Repeated context sending increases token costs.
  • Prompt caching stores input prompts for reuse.
  • Caching reduces costs and improves agent responsiveness.

The AI Agent's "Groundhog Day"

AI agents, similar to the movie "Groundhog Day" scenario, repeatedly process their entire history for each action. Every time an agent performs a step, such as calling a tool or deciding a next action, it must send the large language model (LLM) its complete story, including tool definitions, instructions, and all previous interactions. This is because LLMs lack internal memory between requests and must re-read all prior context to maintain continuity.

The Cost of Repetition

This repetitive sending of context means that for a coding session with 20 turns, the model re-reads turns 1-19 every time. Users are charged for every token sent, leading to increased operational costs as the session progresses. The model only predicts the next token based on the provided input, necessitating the re-submission of all prior information.

Prompt Caching as a Solution

Prompt caching offers a solution to this cycle. The service stores the agent's input prompt, which includes instructions, tools, and content. This stored prompt can then be reused in subsequent requests at a fraction of the original input price. This mechanism helps to keep costs down and ensures agents remain responsive and consistent.

Components of an Agent's LLM Invocation

A typical agent's initial invocation to an LLM includes several key components. These are the tool list, which defines all callable functions; instructions, comprising developer prompts, rules, and policies; the session history, detailing all past events, tool calls, and results; and the new turn, which is the latest tool result or user message. Without caching, all these components, especially the growing history, are sent repeatedly.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 07

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

This article explains how prompt caching can reduce costs and improve responsiveness for AI agents using OpenAI models on Amazon Bedrock. It details how agents repeatedly send their entire conversational history to LLMs, incurring costs for re-processing the same context, and how caching addresses this by storing and reusing input prompts.