add task field to agent request