Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.31 KB

generative-ai.googleaifilemanager.md

File metadata and controls

35 lines (23 loc) · 1.31 KB

Home > @google/generative-ai > GoogleAIFileManager

GoogleAIFileManager class

Class for managing GoogleAI file uploads.

Signature:

export declare class GoogleAIFileManager 

Constructors

Constructor Modifiers Description
(constructor)(apiKey, _requestOptions) Constructs a new instance of the GoogleAIFileManager class

Properties

Property Modifiers Type Description
apiKey string

Methods

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