Create an agent.