Learn how to create simple yet powerful AI agents in just a few lines of code.
Create multiple AI agents that can work together in just a few lines of code!
Install Package
First, install the PraisonAI Agents package:
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Create Your Agents
Run Your Agents
Execute your agents by running:
Prerequisites
Mini AI Agents are simplified yet powerful AI agents that can:
Individual AI agents with specific roles and capabilities
Built-in tools that agents can use
Coordinates multiple agents
Agents work in sequence, passing results to each other
Search the internet using DuckDuckGo
Requires: pip install duckduckgo_search
Agent Instructions
Write clear and specific instructions:
Tool Usage
Provide tools only to agents that need them:
If using Tools.internet_search
, install required package:
Ensure agent instructions are clear and complementary
Mini AI Agents are designed to be simple yet powerful. They’re perfect for quick prototypes and straightforward automation tasks.