AIAttachment constructor

AIAttachment({
  1. required AIAttachmentType type,
  2. List<int>? bytes,
  3. String? url,
  4. String? filePath,
  5. String? mimeType,
  6. String? name,
})

Implementation

AIAttachment({
  required this.type,
  this.bytes,
  this.url,
  this.filePath,
  this.mimeType,
  this.name,
}) : assert(
        bytes != null || url != null || filePath != null,
        'At least one of bytes, url, or filePath must be provided.',
      );