Integrate AgentFactory.