Iraqi President Jalal Talabani says leaders of the country 's political parties have agreed to form a national unity government - but that the details are yet to be worked out .