Package com.google.genai
Class Documents
-
- All Implemented Interfaces:
public final class Documents
-
-
Method Summary
Modifier and Type Method Description Documentget(String name, GetDocumentConfig config)voiddelete(String name, DeleteDocumentConfig config)Pager<Document>list(String parent, ListDocumentsConfig config)Makes an API request to list the available documents. -
-
Constructor Detail
-
Documents
Documents(ApiClient apiClient)
-
-
Method Detail
-
get
Document get(String name, GetDocumentConfig config)
-
delete
void delete(String name, DeleteDocumentConfig config)
-
list
Pager<Document> list(String parent, ListDocumentsConfig config)
Makes an API request to list the available documents.
- Parameters:
parent- The name of the RagStore containing the Documents.config- A ListDocumentsConfig for configuring the list request.- Returns:
A Pager object that contains the list of documents. The pager is an iterable and automatically queries the next page once the current page is exhausted.
-
-
-
-