Cell API
    Preparing search index...

    Interface Media

    The Media class represents the data and metadata of a media attachment in a message. It consists of a MIME type and the raw data.

    This class is used as a parameter in the constructor of the UserMessage class.

    interface Media {
        data: any;
        id?: string;
        mimeType: MimeType;
        name?: string;
    }
    Index
    data: any

    The raw data of the media attachment.

    id?: string

    The unique identifier of the media attachment.

    mimeType: MimeType

    The MIME type of the media attachment.

    name?: string

    The name of the media object that can be referenced by the AI model.

    Important security note: This field is vulnerable to prompt injections, as the model might inadvertently interpret it as instructions. It is recommended to specify neutral names.

    The name must only contain:

    • Alphanumeric characters
    • Whitespace characters (no more than one in a row)
    • Hyphens
    • Parentheses
    • Square brackets