If you take a look at the demo scene it should give you a pretty good idea, but you'll want to have a set of behavior trees where one agent is the leader and all of the other agents follow that leader. The leader will then designate to the followers where to go. The NavMeshFormationGroup is an abstract class used to have the tasks interact with the NavMeshAgent. You don't need to think about this task directly.