add a report api to collect the agent's task number