@@ -10,8 +10,7 @@ of those documents.
1010
1111This is the primary tool to search for documentation. It returns snippets of
1212relevant documents, along with their names and URLs. If snippets are
13- insufficient, use ` get_document ` or ` batch_get_documents ` to retrieve full
14- content.
13+ insufficient, use ` get_documents ` to retrieve full content.
1514
1615** When to use:**
1716
@@ -24,36 +23,13 @@ content.
2423* Do not use this tool if the user's question is not related to one of the
2524 covered Google developer products.
2625* Do not use this tool if you already have a document name and need its
27- content; use ` get_document ` or ` batch_get_documents ` instead.
26+ content; use ` get_documents ` instead.
2827
2928** Example:** If a user asks "How do I create a Cloud Storage bucket?", you
3029should call: `print(developer_knowledge.search_documents(query="How to create a
3130Cloud Storage bucket?"))`
3231
33- ### get_document
34-
35- This tool retrieves the full content of a single document based on its name.
36-
37- ** When to use:**
38-
39- * After calling ` search_documents ` , if a result seems relevant but the snippet
40- is insufficient to answer the user's question, use this tool to retrieve the
41- full document content of that single result using the ` parent ` returned by
42- ` search_documents ` .
43-
44- ** When not to use:**
45-
46- * Do not use this tool without first calling ` search_documents ` to obtain a
47- document name.
48- * Do not use this tool if you need to fetch more than one document; use
49- ` batch_get_documents ` instead for efficiency.
50-
51- ** Example:** If ` search_documents ` returns a result with
52- ` parent='documents/docs.cloud.google.com/storage/docs/creating-buckets' ` , and you
53- need the full content, you should call:
54- ` print(developer_knowledge.get_document(name="documents/docs.cloud.google.com/storage/docs/creating-buckets")) `
55-
56- ### batch_get_documents
32+ ### get_documents
5733
5834This tool retrieves the full content of multiple documents (up to 20) in a
5935single call, based on their names.
@@ -63,18 +39,15 @@ single call, based on their names.
6339* After calling ` search_documents ` , if multiple results seem relevant but
6440 their snippets are insufficient to answer the user's question, use this tool
6541 to retrieve the full document content of up to 20 results in a single call,
66- using the ` parent ` returned by ` search_documents ` . This is more efficient
67- than calling ` get_document ` multiple times.
42+ using the ` parent ` returned by ` search_documents ` .
6843
6944** When not to use:**
7045
7146* Do not use this tool without first calling ` search_documents ` to obtain
7247 document names.
73- * Do not use this tool if you only need to fetch a single document; use
74- ` get_document ` instead.
7548
7649** Example:** If ` search_documents ` returns multiple results, and you need the
7750full content for two of them with ` parent `
7851` documents/docs.cloud.google.com/storage/docs/creating-buckets ` and
7952` documents/docs.cloud.google.com/storage/docs/introduction ` , you should call:
80- ` print(developer_knowledge.batch_get_documents (names=["documents/docs.cloud.google.com/storage/docs/creating-buckets","documents/docs.cloud.google.com/storage/docs/introduction"])) `
53+ ` print(developer_knowledge.get_documents (names=["documents/docs.cloud.google.com/storage/docs/creating-buckets","documents/docs.cloud.google.com/storage/docs/introduction"])) `
0 commit comments