An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# LLM-based Maze Agent

![screenshot](screenshot.png)

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.