https://github.com/ekzhu/llm_maze_agent
Navigating a maze using LLM agent
https://github.com/ekzhu/llm_maze_agent
agent chat-gpt gpt-4 langchain maze
Last synced: about 1 month ago
JSON representation
Navigating a maze using LLM agent
- Host: GitHub
- URL: https://github.com/ekzhu/llm_maze_agent
- Owner: ekzhu
- License: mit
- Created: 2023-03-26T02:17:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T06:41:16.000Z (about 2 years ago)
- Last Synced: 2025-03-18T06:23:16.902Z (about 1 month ago)
- Topics: agent, chat-gpt, gpt-4, langchain, maze
- Language: Python
- Homepage:
- Size: 321 KB
- Stars: 39
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LLM-based Maze Agent

Install dependencies:
```bash
pip install -r requirements.txt
```Set up environment variables:
```bash
export OPENAI_API_KEY='your API key'
```Run maze agent on a randomly generated maze with 4 rows and 4 columns:
```bash
python maze_agent.py --rows 4 --columns 4
```A separate window will pop up to show the agent navigating the maze
in realtime.