langchain.js
    Preparing search index...

    Use ContentBlock.Multimodal.Data instead

    interface Base64ContentBlock {
        data: string;
        id?: string;
        metadata?: Record<string, unknown>;
        mime_type?: string;
        source_type: "base64";
        type: "image" | "audio" | "file";
        [key: string]: unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: string]: unknown

      Arbitrary properties

    Index

    Properties

    data: string
    id?: string

    Content block identifier, which can be either

    • generated by the provider (e.g., a provider-specific ID)
    • generated by LangChain upon creation (a uuid prefixed with 'lc-')
    metadata?: Record<string, unknown>
    mime_type?: string
    source_type: "base64"
    type: "image" | "audio" | "file"

    Type of the content block