Updating the agent apis in order to fit it the new results model