Prompt Caching: Reuse Stable Context for Cost & Latency Gains

Implement prompt caching to reuse stable components of an agent's prompt, such as system instructions or common schemas, across multiple runs. This prevents redundant reprocessing of unchanging context, reducing both token costs and latency.

Sources

Open the full topic