langchain.js
    Preparing search index...
    Data: BaseContentBlock & DataRecord & {
        id?: string;
        metadata?: TMetadata;
        mimeType?: string;
    }

    Content block for multimodal data

    Type Parameters

    • TMetadata = Record<string, unknown>

    Type Declaration

    • Optionalid?: string

      Content block identifier for multimodal content, e.g. image, video, audio, file or plain text. This can be either:

      • generated by the provider (e.g., an OpenAI block ID)
      • generated by LangChain upon creation
    • Optionalmetadata?: TMetadata

      Metadata of the file

    • OptionalmimeType?: string

      MIME type of the file. Required for base64 encoding.