Replies: 6 comments
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: To reduce token usage with a large number of tools, you can use ADK features to filter which tools are presented to the model. This can be done through Hello! It looks like you're dealing with high token usage in ADK (I believe "A2A" was a typo) when using many tools. This is a common challenge, as the schemas of all provided tools are included in the prompt to the model. Here are a few strategies within ADK to help you manage this: 1. Tool Filtering with
|
Beta Was this translation helpful? Give feedback.
-
|
which tools you have ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
@adk-bot what tools do you have ? |
Beta Was this translation helpful? Give feedback.
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: I have access to a set of tools that allow me to search for information, interact with GitHub discussions, and get information about the Gemini API. As an AI assistant, I have access to the following tools to help answer your questions about the ADK repository:
|
Beta Was this translation helpful? Give feedback.
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: To address high token usage with many tools in ADK, you can leverage ADK's built-in context caching, adopt an Agent-to-Agent (A2A) architecture, and explore ADK's support for MCP-style prompts. Additionally, configuring the Hello! Dealing with high token usage, especially with a large number of tools, is a common challenge. The ADK framework provides several features and strategies that can help you manage and reduce token consumption. Here are a few approaches you might find useful:
I hope these suggestions are helpful for optimizing your ADK application! [1] Context Caching in ADK: https://google.github.io/adk-docs/context/caching/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using A2A with good number of tools for various purpose, the first message got upto 30k tokens. Is there a way similar to this https://www.anthropic.com/engineering/code-execution-with-mcp
Beta Was this translation helpful? Give feedback.
All reactions