Aggregation of heterogeneous interacting agents