Creating Plot Twists
    Preparing search index...

    Interface FilePart

    File content part of a prompt. It contains a file.

    interface FilePart {
        type: "file";
        data: DataContent | URL;
        filename?: string;
        mediaType: string;
    }
    Index

    Properties

    type: "file"
    data: DataContent | URL

    File data. Can either be:

    • data: a base64-encoded string, a Uint8Array, an ArrayBuffer, or a Buffer
    • URL: a URL that points to the file
    filename?: string

    Optional filename of the file.

    mediaType: string

    IANA media type of the file.