General-purpose foundation models for increased autonomy in robot-assisted surgery