revert mod to AgentDefinition, keep agent_default_config