This repository demonstrates how AutoGen can be used to build the same stock analysis system using two different agent architectures.
The first implementation uses specialized agents for stock analysis, found here url:
- Google Search Agent: Gathers recent information about companies
- Stock Analysis Agent: Performs technical analysis on stock data
- Report Agent: Compiles information into comprehensive reports
The second implementation shows how the same functionality can be achieved using fundamental coding agents:
- Code Generator Agent: Writes the analysis code
- Code Executor Agent: Runs the code and handles results
- Report Agent: Compiles findings into reports
This demonstrates AutoGen's flexibility - the same task can be approached in different ways:
- Specialized agents focused on specific domains
- General-purpose agents that can handle any coding task
- Installation:
pip install autogen-agentchat autogen-ext openai
- Environment Setup:
# Create .env file with your API keys
OPENAI_API_KEY=your_key_here
python stock_analyzer_2.py
- Specialized knowledge of stock analysis
- Direct market data handling
- Domain-specific reporting
- Generic code writing and execution
- Flexible for any programming task
- Can be repurposed for different analyses
A code generator, a code executor and a file manager and I will build any agent for you!!!
Magentic-one is under development and it is exactly this!!!!! websurfer, filesurfer and a code compiler
MIT License