Party formation exist since Baldur's Gate 1. You can put an option, free formation and default formation.