The agent will only be concerned about the immediate itinerary. However, depending on the country, they may require to see proof of how/when you were planning to leave the country. Also, review TIMATIC to see if there were any specific visa-on-arrival requirements. For example, Bolivia requires you to have a visa application in hand, and I was nearly denied boarding because an overzealous employee read the rule literally.