AutoAgents
AutoAgents automatically creates and manages AI agents and tasks based on high-level instructions.
AutoAgents automatically creates and manages AI agents and tasks based on high-level instructions.
Quick Start
Install Package
First, install the PraisonAI Agents package:
Set API Key
Set your OpenAI API key as an environment variable in your terminal:
Create a file
Create a new file app.py
with the basic setup:
Start AutoAgents
Run your AutoAgents:
Requirements
- Python 3.10 or higher
- OpenAI API key. Generate OpenAI API key here. Use Other models using this guide.
Understanding AutoAgents
What are AutoAgents?
AutoAgents automatically:
- Creates appropriate AI agents based on your instructions
- Assigns relevant tools to each agent
- Breaks down tasks into manageable steps
- Manages execution flow between agents
- Handles agent coordination and task delegation
Features
Automatic Agent Creation
Creates specialized agents based on task requirements.
Smart Tool Assignment
Automatically assigns relevant tools to each agent.
Task Management
Breaks down complex tasks into manageable steps.
Process Optimization
Chooses optimal execution process (sequential/hierarchical).
Advanced Usage
Configuration Options
Process Types
Best Practices
Troubleshooting
Tool Assignment Issues
If tools aren’t being assigned correctly:
- Check tool compatibility
- Verify tool names
- Enable verbose mode for debugging
Performance Issues
If execution is slow:
- Reduce max_agents
- Adjust max_rpm
- Consider process type
API Reference
Main Parameters
High-level task description for the agents
List of tools available to the agents
Maximum number of agents to create
Process type: “sequential” or “hierarchical”
Optional Parameters
Enable detailed logging
Enable agent memory
Allow agents to delegate tasks
Methods
Start the agents synchronously
Start the agents asynchronously
Next Steps
Examples
Explore more examples in our examples directory
Custom Tools
Learn how to create custom tools for your agents
For optimal results, provide clear instructions and appropriate tools for your use case.
Was this page helpful?