Use set to set the agent key value