Home > @google/generative-ai > GoogleAIFileManager
Class for managing GoogleAI file uploads.
Signature:
export declare class GoogleAIFileManager
Constructor | Modifiers | Description |
---|---|---|
(constructor)(apiKey, _requestOptions) | Constructs a new instance of the GoogleAIFileManager class |
Property | Modifiers | Type | Description |
---|---|---|---|
apiKey | string |
Method | Modifiers | Description |
---|---|---|
deleteFile(fileId) | Delete file with given ID | |
getFile(fileId) | Get metadata for file with given ID | |
listFiles(listParams) | List all uploaded files | |
uploadFile(filePath, fileMetadata) | Upload a file |