Configuring the agent's task history purging period