add agent task handlers