update agent definition