A sophisticated multi-agent framework capable of autonomously creating and managing specialized AI agents for complex tasks. This system leverages OpenAI's GPT models to create intelligent agents that can perform research, writing, and analysis tasks.
-
Multiple Agent Types:
- Research Agent: Gathers information on specific topics
- Writing Agent: Creates content in various styles
- Analysis Agent: Provides insights and analysis
-
Flexible Architecture:
- Factory pattern for dynamic agent creation
- Modular design for easy extension
- Context preservation between agent interactions
- Clone the repository:
git clone https://github.com/Busrapehlivan/Agent-that-Generates-New-Agents.git
cd Agent-that-Generates-New-Agents
- Install dependencies:
pip install -r requirements.txt
- Set up your OpenAI API key:
- Create a
.env
file in the root directory - Add your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
- Create a
The system can be used by running the main.py
file, which demonstrates the basic workflow:
from agent_manager import AgentManager
# Create agent manager
manager = AgentManager()
# Create a research agent
research_agent = manager.create_agent("research", {
"topic": "Latest developments in artificial intelligence"
})
# Execute research task
research_results = research_agent.execute_task()
# Create a writing agent to transform research into content
writing_agent = manager.create_agent("writing", {
"style": "technical blog post"
})
# Generate content based on research
blog_post = writing_agent.execute_task(research_results)
.
├── agent_factory.py # Factory for creating specialized agents
├── agent_manager.py # Main manager for coordinating agents
├── agents/
│ ├── __init__.py
│ ├── analysis_agent.py # Specialized analysis agent
│ ├── base_agent.py # Abstract base class for all agents
│ ├── research_agent.py # Specialized research agent
│ └── writing_agent.py # Specialized writing agent
├── main.py # Example usage and demonstration
├── requirements.txt # Project dependencies
└── utils.py # Utility functions and OpenAI integration
- Python 3.8+
- OpenAI API (GPT-4)
- Required Python packages:
- openai==1.3.5
- python-dotenv==1.0.0
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Büşra Pehlivan
- OpenAI for providing the GPT API
- The Python community for excellent libraries and tools