DocumentData: {
    content: (
        | { media?: undefined; text: string }
        | { media: { contentType?: string; url: string }; text?: undefined }
    )[];
    metadata?: Record<string, any>;
}

Type declaration

  • content: (
        | { media?: undefined; text: string }
        | { media: { contentType?: string; url: string }; text?: undefined }
    )[]
  • Optionalmetadata?: Record<string, any>