Learning Automata-Based Task Knowledge Representation from Large-Scale Generative Language Models