LLM-Driven Task Planning for Autonomous Robots