Package com.google.genai
Class AsyncDocuments
java.lang.Object
com.google.genai.AsyncDocuments
Async module of
Documents-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondelete(String name, DeleteDocumentConfig config) get(String name, GetDocumentConfig config) list(String parent, ListDocumentsConfig config) Asynchronously makes an API request to list the available documents.
-
Constructor Details
-
AsyncDocuments
public AsyncDocuments(com.google.genai.ApiClient apiClient)
-
-
Method Details
-
get
-
delete
-
list
Asynchronously makes an API request to list the available documents.- Parameters:
config- AListDocumentsConfigfor 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.
-