MiniAGI is a simple general-purpose AI agent based on the OpenAI API.
MiniAGI is a simple general-purpose AI agent based on the OpenAI API.
MiniAGI is a simple autonomous agent compatible with GPT-3.5-Turbo and GPT-4. It combines a robust prompt with a minimal set of tools, chain-of-thoughts, and short-term memory with summarization. It is also capable of inner monologue and self-criticism.
git clone https://github.com/muellerberndt/mini-agi
cd mini-agi
pip install -r requirements.txt
cp .env_example .envNote that Python 3.10 or higher is required.
python miniagi.py <objective>For example:
python miniagi.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice."The critic may improve accuracy of the agent at the cost of additional API requests. To activate it set ENABLE_CRITIC to true in your env.
Safety and privacy advisory: The agent may inadvertently suggest harmful commands or code. Proceed with caution and use at your own discretion. Be aware that, depending on your settings and requirements, the agent might share your data with third-party API providers such as OpenAI.
% python miniagi.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice."
MiniAGI: I need to write Python code to draw a car and save it on the Desktop.
Cmd: execute_python, Arg: "from PIL import Image, ImageDraw\nimport os\n\n# Create canvas\nwidt..."
Objective achieved.
…………… % python miniagi.py "Create a beautiful generative artwork in an image format of your choice and save it on my Desktop"
MiniAGI: First, I will install necessary python packages for creating the artwork.
Cmd: execute_shell, Arg: "pip install numpy pillow"
MiniAGI: Generate a beautiful generative artwork using Python and save it on the user's Desktop
Cmd: execute_python, Arg: "from PIL import Image, ImageDraw\nimport random\nfrom pathlib impo..."
Objective achieved.………I didn't continue from here as I don't have an Uber Eats API key.
…No open issues yet, or sync has not completed.