ChatMessageContentMultiModal constructor

ChatMessageContentMultiModal({
  1. required List<ChatMessageContent> parts,
})

Implementation

ChatMessageContentMultiModal({
  required this.parts,
}) : assert(
        !parts.any((final p) => p is ChatMessageContentMultiModal),
        'Multi-modal messages cannot contain other multi-modal messages.',
      );