This is a high-quality problem, but one you should consider as you start your agent search. Some turn out to be supportive, productive, and fulfilling. Others end in acrimonious divorce. You should interview any agent prior to entering into an agent-client relationship. If more than one agent expresses interest in representing you, choose the one who seems most in sync with your vision of your work and writing future.
Halfhearted representation is a setup for frustration and failure.
A good agent will offer sound suggestions for getting your book in publishable shape. The agent needs to envision where your work belongs in the marketplace and have good contacts at appropriate publishing houses. Agents handle submissions, negotiations, and contract revisions. As the book goes through the publication process, the agent serves as your liaison to the publishing house and troubleshoots should problems arise. Generally, agents collect your advances and royalties.