Is there a way to set the preferred assist pipeline in a service

Based on the availability of the assist agent, I want to switch between the voice assist pipelines. I have an AI Assist agent running on my PC, and one on my server that is always on. So I want to use the one on my PC when its available, otherwise use the one on the server.

I now have set all my assist devices to use the preferred pipeline and I believe the android companion app also uses the preferred one first. If I could change the preferred pipeline in an automation based on the availability, I think that would solve my problem, but any other ideas are welcome as well!.