Skip to content
Discussion options

You must be logged in to vote

Response from ADK Answering Agent (experimental, answer may be inaccurate)

TLDR: To minimize token usage in your ADK-based agent, you can use the query schema mode in AgentBuilderAssistant for on-demand schema fetching, and implement a caching layer using ADK Plugins with the before_model_callback to avoid repeated processing of static data. This approach maintains your model-agnostic architecture while improving token efficiency.


Hello Mst96,

Thank you for your detailed question. Minimizing token usage, especially with large static prompts, is a common challenge. Here are some strategies and design patterns within ADK to help you achieve your goal while maintaining a model-agnostic arch…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@hangfei
Comment options

@Mst96
Comment options

Answer selected by hangfei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bot responded [Bot] This issue is responded by ADK bot
3 participants