Mediators say agreement includes release some hostages