Package com.google.genai
Class AsyncDocuments
-
- All Implemented Interfaces:
public final class AsyncDocumentsAsync module of Documents
-
-
Constructor Summary
Constructors Constructor Description AsyncDocuments(ApiClient apiClient)
-
Method Summary
Modifier and Type Method Description CompletableFuture<Document>get(String name, GetDocumentConfig config)CompletableFuture<Void>delete(String name, DeleteDocumentConfig config)CompletableFuture<AsyncPager<Document>>list(String parent, ListDocumentsConfig config)Asynchronously makes an API request to list the available documents. -
-
Constructor Detail
-
AsyncDocuments
AsyncDocuments(ApiClient apiClient)
-
-
Method Detail
-
get
CompletableFuture<Document> get(String name, GetDocumentConfig config)
-
delete
CompletableFuture<Void> delete(String name, DeleteDocumentConfig config)
-
list
CompletableFuture<AsyncPager<Document>> list(String parent, ListDocumentsConfig config)
Asynchronously 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 CompletableFuture that resolves to a AsyncPager. The AsyncPager has a `forEach` method that can be used to asynchronously process items in the page and automatically query the next page once the current page is exhausted.
-
-
-
-