🤖 Autonomous Financial Research Agent (v2.0)# Autonomous Financial Research Agent (AI Systems Architecture)
Unlike traditional linear scripts (Data -> Model -> Plot), this system utilizes a Cyclic State Graph to reason, plan, and execute research tasks autonomously.
The agent autonomously loops between "Thinking" (Gemini) and "Acting" (Tools) until it resolves the user's query.
This project represents a strategic shift from "Model Training" to "AI Systems Architecture."
Instead of simply training a sentiment model, I engineered an Autonomous Agent capable of performing the role of a Junior Financial Analyst. The agent uses Neurosymbolic Reasoning to not just summarize news, but to actively look for "Logical Divergences" (e.g., when sentiment is positive, but the stock price is crashing).
- Agentic Orchestration (LangGraph): The system uses a graph-based state machine to handle complex, multi-step reasoning loops.
- Neurosymbolic Guardrails: Integrates neural intuition (FinBERT Sentiment) with symbolic logic (Price Trend verification) to hallucination-proof the output.
- Governance & Auditability: Implements a custom Throttling Layer to ensure compliance with API rate limits (mimicking enterprise ISO 42001 operational standards).
- Model Context Protocol (MCP): Tools are designed as modular, stateless functions ready for integration with larger multi-agent swarms.
| Component | Technology | Role |
|---|---|---|
| Orchestration | LangGraph | The "Brain" ensuring cyclic reasoning and state management. |
| LLM | Google Gemini 1.5 Flash | The cognitive engine responsible for planning and synthesis. |
| Sentiment Engine | FinBERT (Hugging Face) | Specialized financial sentiment analysis model. |
| Data Tools | yfinance & NewsAPI | Live market data and breaking news fetchers. |
| Governance | Python (Custom Logic) | Rate-limiting and error handling protocols. |
Financial_Agent_2026/
│
├── agents/ # 🧠 The Cognitive Layer
│ ├── __init__.py
│ └── researcher.py # LangGraph State Machine & Logic
│
├── tools/ # 🛠️ The Operational Layer (MCP)
│ ├── __init__.py
│ └── market_tools.py # Stock, News, and Sentiment Tools (w/ Throttling)
│
├── .env # 🔒 API Keys (Not uploaded to GitHub)
├── main.py # 🚀 Entry Point
├── requirements.txt # Dependencies
├── README.md # Documentation
└── Screenshot of outcome.png
