By the general rules of (n,r)-categories, a (2,1)-category is an ∞-category such that
You can start from any notion of ∞-category, strict or weak; up to equivalence, the result can always be understood as a locally groupoidal 2-category.