Skip to content

Commit 3f8b383

Browse files
authored
feat: add new answer_query tool (#3)
1 parent 65d7f53 commit 3f8b383

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

GEMINI.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ insufficient, use `get_documents` to retrieve full content.
2929
should call: `print(developer_knowledge.search_documents(query="How to create a
3030
Cloud Storage bucket?"))`
3131

32+
### answer_query
33+
34+
Use this tool to let another model search for content and synthesize an answer.
35+
This can save tokens in your own context window. This can be helpful for
36+
summarizing complex results. `answer_query` returns citations for its response.
37+
If needed, you can fetch the full content of the citations using
38+
`get_documents`, just like you can with `search_documents`.
39+
40+
**When to use:**
41+
42+
* Use this to synthesize complex information without using as many tokens as
43+
`search_documents`.
44+
45+
**When not to use:**
46+
47+
* Do not use this tool if the user's question is not related to one of the
48+
covered Google developer products.
49+
* Do not use this tool if you already have a document name and need its
50+
content; use `get_documents` instead.
51+
3252
### get_documents
3353

3454
This tool retrieves the full content of multiple documents (up to 20) in a

0 commit comments

Comments
 (0)