$(A_\infty,2)$-categories and relative 2-operads