Mediators say U.S. and Iranian negotiators have agreed to create mechanisms to ensure safe transits in the Strait of Hormuz, and peace in Lebanon.