I think that was supposed to be answered by this line:
After each task completion, the agent gets to be near some diamond and receives reward.
I think that was supposed to be answered by this line: