Interface FileData

URI based data.

interface FileData {
    displayName?: string;
    fileUri?: string;
    mimeType?: string;
}

Properties

displayName?: string

Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls.

fileUri?: string

Required. URI.

mimeType?: string

Required. The IANA standard MIME type of the source data.