"Enumerate the 10 trillion most likely strings in this context" is probably an elementary problem if you have a good language model.
Because you already have a very high-quality primitive for "enumerate the top-k most likely words following the given string prefix". You can chain those together in some way, I think.
Enumeration is just a special case of generation.
But you need an _extremely fast_ LLM for this generation to be fast enough. It's got to be tailor-made for the task...