Does context caching cache across conversation turn? #3222
Replies: 2 comments 1 reply
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Yes, ADK's context caching is specifically designed to work across multiple conversation turns within the same session, which can significantly reduce latency and cost. Hello! That's a great question. The context caching feature in ADK is indeed designed to persist and provide benefits across multiple turns in a conversation. Here’s a breakdown of how it works and how you can leverage it:
In summary, by enabling [1] |
|
I tested many times that the context caching is only apply for the root_agent, not for agent tool's agent or sub agent |
Uh oh!
There was an error while loading. Please reload this page.
I have an agent that call an agent tool to complete task. The agent tool has very long static instructions, if I chat with my agent multiple times, each turn only uses the agent tool, does the context caching benefit across these turn chats?
All reactions