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. This field is only returned in PromptMessage for prompt management. It is currently used in the Gemini GenerateContent calls only when server side tools (code_execution, google_search, and url_context) are enabled. This field is not supported in Gemini API.

fileUri?: string

Required. URI.

mimeType?: string

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