Hi, I work at Modal and it's definitely possible to deploy agents on Modal. The fact that agents are stateful and long running is not a problem, it's a benefit. The combination of a framework like LiveKit and Modal gives you the best of both worlds.
That said, there's some nuance to the implementation, so we've PR'd a deployment example to the agent-deployments repo.
Try it out and let me know if you have any questions:
https://github.com/livekit-examples/agent-deployment/pull/18