Create agent model