Leveraging Environment Interaction for Automated PDDL Translation and Planning with Large Language Models