This project is a Python-based multi-agent assistant that fetches financial data and performs web searches using advanced AI models. Built with the Phi SDK and powered by Groq's LLaMA 3, this assistant helps you get real-time stock data, company news, and analyst insights in an easy-to-read format.
-
π Financial Agent
Gets stock prices, fundamentals, news, and analyst recommendations using Yahoo Finance. -
π Web Search Agent
Searches the internet for relevant information using DuckDuckGo and summarizes it with sources. -
π€ Multi-Agent Mode
Both agents work together to answer complex queries with reliable, real-time data and formatted tables.
- Phi SDK
- Groq LLaMA 3 model
- Yahoo Finance Tools
- DuckDuckGo API
- Python 3.10+
- OpenAI (for API key handling)
Make sure you have:
- Python 3.10 or higher installed
- A Groq-compatible model access (like LLaMA 3 via Groq)
- An OpenAI-compatible
.envfile with your API key
- Clone the repository
git clone https://github.com/your-username/financial-agent.git
cd financial-agent- VENV
python -m venv venv
source venv/bin/activate # For Windows: venv\Scripts\activate- Install dependencies
pip install -r requirements.txt- Set your API key in .env file
OPENAI_API_KEY=your_openai_api_key_here- RUN
python financial_agent.py- Supports real-time stock analysis
- Automatically fetches latest news
- Uses Markdown tables for clear output
- Works with multiple agents using Phiβs team mode