Any restrictions must be agreed in advance, in writing.
To be effective, the agreement will need to relate to the customers, or territory, or type of goods in relation to which the agent was acting for you. Restrictions can in no case last more than two years, and must be seen to be reasonable.