The UN-brokered accord follows a week of fighting in Tripoli that forced thousands to flee their homes.
Source: BBC African news