Prime Minister Mark Carney is heading to France for the G7 summit, a day after U.S. President Donald Trump announced an agreement had been reached to end the conflict in Iran.