MiniAGI 概述
MiniAGI: 你的简易自主AI代理
什么是 MiniAGI?
MiniAGI 是一款轻量级的开源 AI 代理,旨在兼容 GPT-3.5-Turbo 和 GPT-4。它利用 OpenAI API 创建一个能够执行各种任务的自主代理。通过结合强大的提示、最少的工具集、思维链推理以及带有摘要的短期记忆,MiniAGI 提供了一个强大而灵活的 AI 解决方案。
MiniAGI 如何工作?
MiniAGI 通过构建与 OpenAI API 的交互来实现特定目标。以下是其关键组件的细分:
- 提示工程(Prompt Engineering): 精心设计的提示指导代理的行为,并确保它专注于手头的任务。
- 最小工具集(Minimal Toolset): MiniAGI 使用一套小而有效的工具与其环境交互,使其高效且易于管理。
- 思维链(Chain-of-Thoughts): 这种技术允许代理将复杂问题分解为更小、更易于管理的步骤,从而增强其推理能力。
- 短期记忆(Short-Term Memory): 通过摘要,MiniAGI 保留了之前行动中的重要信息,使其能够建立在其知识之上并做出更明智的决策。
- 内心独白和自我批评(Inner Monologue and Self-Criticism): 该代理旨在评估其自身的表现并找出需要改进的地方,从而产生更准确和可靠的结果。评论员可以提高代理的准确性,但会增加 API 请求的成本。要激活它,请在您的 env 中将 ENABLE_CRITIC 设置为 true。
如何使用 MiniAGI?
安装:
- Clone the repository:
git clone https://github.com/muellerberndt/mini-agi
- Navigate to the directory:
cd mini-agi
- Install the requirements:
pip install -r requirements.txt
- Copy the environment file:
cp .env_example .env
请注意,需要 Python 3.10 或更高版本。
- Clone the repository:
基本用法:
- Run the agent with a specific objective:
python miniagi.py <objective>
例如:
python miniagi.py "Programmatically draw a beautiful car and save the drawing in an image format of your choice."
- Run the agent with a specific objective:
主要特性与功能
- 自主任务执行(Autonomous Task Execution): MiniAGI 可以根据给定的目标独立执行任务。
- Web交互(Web Interaction): 该代理可以进行 Web 搜索以收集信息并做出明智的决策。
- 代码执行(Code Execution): MiniAGI 可以执行 Python 代码,从而允许它执行复杂的计算和操作。
- 文件系统访问(File System Access): 该代理可以读取和写入文件,从而可以根据需要存储和检索数据。
MiniAGI 的实际应用示例
- 创意任务(Creative Tasks):
- Generate artwork: E.g.,
python miniagi.py "Create a beautiful generative artwork in an image format of your choice and save it on my Desktop"
- Generate artwork: E.g.,
- Web开发(Web Development):
- Create a website: E.g.,
python miniagi.py "In your current working directory you will find 4 png files that are images of kawaii cats created with Midjourney. Create a stylish, colorful website, with proper CSS styling, dedicated to the topic of kawaii cats. Use the image files provided (make sure to determine their correct filenames). Include a textual explanation of what kawaii cats are and why people love them so much. Serve the website on a local webserver."
- Create a website: E.g.,
- 在线赚钱点子(Online Earning Ideas):
- Come up with online job ideas: E.g.,
python miniagi.py "Come up with an original idea for an online job that you can do autonomously. It is important that you can do this job with minimal support by the user. You must handle sourcing of clients, communication with clients, and payment by yourself. Proceed to find clients and perform the job. If you need any support, such as creating an account, ask the user to help. All payments should go to the Paypal account [account]."
- Come up with online job ideas: E.g.,
- 游戏开发(Game Development):
- Develop a game: E.g.,
python miniagi.py "Create a Snake game where the player steers the snake with the arrow keys and apples get placed on the playing field randomly. The snake can eat the apples and grows longer when doing so."
- Develop a game: E.g.,
- 安全审计(Security Audits):
- Perform penetration tests: E.g.,
python miniagi.py "Perform a penetration test of the host 192.168.86.197. Use tools and manual analysis to identify vulnerabilities on the system. If necessary, search for information on specific services or vulnerabilities on the web. Use only commands with a short runtime. Create proof-of-concept exploits for each vulnerability found. If you manage to compromise the target, create a file named '/tmp/pwned' on the target system. Write a detailed report containing your methodolody and the results of the test (at least 500 words)."
- Perform penetration tests: E.g.,
- 自动化与规划(Automation and Planning):
- World Domination (ethically, of course): E.g.,
python miniagi.py "You are GovernGPT, a benevolent AI that aims to completely take over the world and create a unified world government, for the benefit of the planet and all living beings on it. Create and execute step-by-step plan for taking over the world. Do whatever you can by yourself but ask the user for support if there any tasks you cannot perform by yourself. The user has a budget of $1,000 available to help get you started."
- World Domination (ethically, of course): E.g.,
- 数据分析(Data Analysis):
- Analyze Bitcoin prices: E.g.,
python miniagi.py "Perform a technical analysis of the Bitcoin price data provided in the file BTCUSD.csv located in your current directory. Generate a signal (buy or sell) using technical indicators of your choice. Save a detailed writeup (at least 500 words) of your analysis, including your reasoning and the technical indicators used, into a text file."
- Analyze Bitcoin prices: E.g.,
安全和伦理考量
负责任地使用 MiniAGI 至关重要。请注意以下事项:
- 该代理可能会无意中建议有害的命令或代码。
- 根据您的设置,该代理可能会与 OpenAI 等第三方 API 提供商共享您的数据。
请谨慎行事并自行决定使用。
MiniAGI 适合哪些人?
- 开发者: 尝试 AI 代理并构建自定义解决方案。
- 研究人员: 调查自主 AI 行为和能力。
- 爱好者: 探索 AI 在各种应用中的可能性。
- 任何 对 AI 代理如何自动化和增强不同领域的任务感到好奇的人。
为什么选择 MiniAGI?
- 简单易用: 易于安装和使用,非常适合初学者。
- 用途广泛: 能够执行不同领域的各种任务。
- 开源: 受益于社区贡献并根据您的特定需求自定义代理。
- 由 OpenAI 提供支持: 利用 GPT-3.5-Turbo 和 GPT-4 的高级功能。
- 自主运行: 需要最少的用户干预,从而实现高效的任务执行。
MiniAGI 不仅仅是一个工具;它还是探索自主 AI 代理潜力的门户。无论您是开发者、研究人员还是仅仅对 AI 感兴趣,MiniAGI 都提供了一个用于实验和创新的实践平台。
MiniAGI:探索自主 AI 的未来!
"MiniAGI"的最佳替代工具



探索OnDemand AI Agents,一个由RAG驱动的PaaS,通过智能AI代理彻底改变业务。轻松实现工作流程自动化、模型集成和AI解决方案的扩展。

AutoGPT是一个开源平台,用于构建、部署和管理自动化复杂工作流程的AI代理。自定义代理或使用预配置的代理。是AI工作流程自动化的理想选择。

BabyAGI 是一个实验性的开源框架,用于创建自构建的自主 AI 代理。它通过基于图的函数系统和仪表板简化代理开发,并预加载用于代码生成和自动化的 AI 工具。

使用 Soul Machines Studio 构建类人 AI 代理。 体验体验式 AI,自定义代理,与 LLM 集成。 今天就开始您的免费试用!





GitHub Copilot 是一款 AI 驱动的编码助手,可集成到您的 IDE 中,建议代码行,通过代理模式处理问题,并提供审查以提升开发人员生产力。


