I've worked on TCAS (collision avoidance for airplanes) in the past. The system will alert the pilot and ask them to do a specific route (such as climb, descend, do-not-climb). It's up to the pilot to respond (est. 2-5 seconds reaction time). The route decided upon by the airplane is in conjunction with the other plane.