This project showcases two specialized AI agents: a Financial Analyst and a Web Researcher, built using the Phidata framework. These agents are designed to answer financial questions (stock prices, fundamentals, analyst recommendations) and perform real-time web searches with citations.
-
📈 Financial Analyst Agent
- Pulls real-time stock prices, analyst recommendations, and fundamentals
- Uses
YFinanceToolsfor accurate and updated data - Auto-formats responses in clean Markdown tables
-
🌐 Web Researcher Agent
- Uses
DuckDuckGoto perform live web searches - Responds with sources and citations
- Good for news, current events, or company info
- Uses
-
🧠 Team Agent
- Smartly routes queries to the relevant agent
- Supports debug logs and reasoning traces
- Modular – easily extendable to more agents or domains
-
🧪 Interactive Playground
- Launch the app locally with a Streamlit-like interface
- Ask finance or web questions in a chat UI
git clone https://github.com/Pranav-here/financial-advising.git
cd financial-advisingUse Pipenv:
pipenv install
pipenv shellOr just use pip:
pip install -r requirements.txtCreate a .env file and add your keys:
OPENAI_API_KEY=your-openai-key
GROQ_API_KEY=your-groq-keyphi euth
python playground.py- Run
playground.pyto launch the local UI - Ask questions like:
"Compare analyst recommendations for Tesla and Apple""What's the latest news about Nvidia?"
- Agents will auto-select and return clean, contextual answers
See the
/Working App/folder for example outputs.
| File | Purpose |
|---|---|
financial_advisors.py |
Financial agent logic setup with YFinance tools |
playground.py |
Launches web UI using Phidata's Playground |
testing.py |
Simple script to test agents via CLI |
Pipfile / requirements.txt |
Package dependencies |
- Add a News Summary Agent using
NewsAPI - Integrate earnings calendar + price prediction models
- Deploy the UI using FastAPI + Vercel
Pranav Kuchibhotla
💻 Portfolio | 🔗 LinkedIn
MIT – feel free to fork and build on it!