Use correct metrics arg in agent creation.