Templates decide first
Every template declares which runtimes it supports. When it supports one, the deploy form locks it; when it supports several, you pick. Choose a template for what the agent should do and let the runtime follow; the managed environment underneath is the same either way.