Hello pmathur,
I’m not familiar with using Swarm myself but maybe these two resources could help you.
The first is an answerhub where one of our developers answered a question about how to use swarm with quite a bit of detail: Swarm - What is it and how to use it? - Platform & Builds - Epic Developer Community Forums
The second is a troubleshooting guide set up by a co-worker on how to fix a lot of common problems with SwarmAgent:
Hope this helps!