There are few publishers that do take work done by teams, but it is rare, and I've never heard of an agent doing it. I'm sorry this has happened to you. I'd research every agent carefully and decide if they might be open to this. Also, perhaps your advisor will be open to it. If they are reputable, you can say you took their advice in your letter.