MiniAGI 是一个基于 OpenAI API 的简单通用人工智能代理。
MiniAGI 是一个简单的自主智能体,兼容 GPT-3.5-Turbo 和 GPT-4。它结合了强大的提示词与最小化的工具集、思维链以及带摘要的短期记忆。它还能进行内心独白和自我批评。
git clone https://github.com/muellerberndt/mini-agi
cd mini-agi
pip install -r requirements.txt
cp .env_example .env请注意,需要 Python 3.10 或更高版本。
python miniagi.py <objective>例如:
python miniagi.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice."批评者可能会提高智能体的准确性,但代价是额外的 API 请求。要激活它,请在您的环境中将 ENABLE_CRITIC 设置为 true。
安全与隐私提示: 该代理可能会无意中建议有害的命令或代码。请谨慎操作,并自行决定使用。请注意,根据您的设置和要求,代理可能会与第三方API提供商(如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 "使用您选择的图像格式创建精美的生成性艺术作品,并将其保存到我的桌面" MiniAGI: 首先,我将安装创建艺术作品所需的 Python 包。 Cmd: execute_shell, Arg: "pip install numpy pillow" MiniAGI: 使用 Python 生成精美的生成性艺术作品,并将其保存到
暂无开放 Issues,或尚未同步最近议题。