From 77bf03b638e440b1785ed257874c5403390f2b4e Mon Sep 17 00:00:00 2001 From: Tyler Bui-Palsulich Date: Tue, 23 Jun 2026 19:22:20 +0000 Subject: [PATCH] feat: add new answer_query tool --- GEMINI.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/GEMINI.md b/GEMINI.md index 237905b..1b033b2 100644 --- a/GEMINI.md +++ b/GEMINI.md @@ -29,6 +29,26 @@ insufficient, use `get_documents` to retrieve full content. should call: `print(developer_knowledge.search_documents(query="How to create a Cloud Storage bucket?"))` +### answer_query + +Use this tool to let another model search for content and synthesize an answer. +This can save tokens in your own context window. This can be helpful for +summarizing complex results. `answer_query` returns citations for its response. +If needed, you can fetch the full content of the citations using +`get_documents`, just like you can with `search_documents`. + +**When to use:** + +* Use this to synthesize complex information without using as many tokens as + `search_documents`. + +**When not to use:** + +* Do not use this tool if the user's question is not related to one of the + covered Google developer products. +* Do not use this tool if you already have a document name and need its + content; use `get_documents` instead. + ### get_documents This tool retrieves the full content of multiple documents (up to 20) in a