The forum came as Beijing seeks to attract foreign investment as its economy grappled with sluggish domestic consumption and escalating trade tensions.