Session
Prompt Caching Isn't Enough
An agent turn pays four bills: input tokens, the generated answer, planning cycles and tool calls. Prompt caching discounts the first one only.
This session takes one cache per bill. A response cache returns a stored answer when the question repeats. A reasoning cache reuses the tool path when only the task repeats. A tool-result cache skips the API call when the arguments repeat. You leave with the code for all three as agent hooks and a rule for which one to build first.
What you'll learn:
• A map from each agent cost to the cache that removes it
• Open-source code for the three caches as agent lifecycle hooks, with local notebooks and deployable stacks
• Cold and warm runs from a deployed agent for each cache, so you can run the same comparison on your own traffic
• The reuse technique that made runs longer, so you can skip it
Outline:
• One agent turn, four bills
• Input: prompt caching
• Response cache: the question repeats
• Reasoning cache: the task repeats
• Tool-result cache: the call repeats
• Stacking them
Elizabeth Fuentes Leone
Developer Advocate
San Francisco, California, United States
Links
Please note that Sessionize is not responsible for the accuracy or validity of the data provided by speakers. If you suspect this profile to be fake or spam, please let us know.
Jump to top