With investors' artificial intelligence focus turning to agentic AI, UiPath stock could be a long-term winner.