Added a constructor for an AgentFactory instance without need for a configuration file