A production-ready multi-agent research orchestration platform that automates deep research, fact verification, and executive brief generation.
Built with LangGraph, FastAPI, and Google Gemini 2.5, the system coordinates multiple specialized AI agents through a persistent shared state architecture. It supports fault-tolerant execution, real-time streaming via Server-Sent Events (SSE), and human-in-the-loop intervention for strategic steering during research cycles.
The platform coordinates four specialized AI agents through a shared LangGraph state.
Discovers relevant facts, historical context, metrics, and emerging trends related to the requested topic. Uses cumulative state updates to safely expand knowledge while minimizing context-window growth.
Audits and validates research outputs before they are used downstream, reducing factual inconsistencies and mitigating hallucinations.
Transforms verified findings into a structured, executive-level technical brief aligned with the user's objectives and guidance.
Evaluates generated reports against a predefined quality rubric and assigns a score from 1β10. Reports scoring below the acceptance threshold are returned to the workflow with targeted improvement recommendations.
[User Input]
β
βΌ
[Researcher]
β
βΌ
[Verifier]
β
βΌ
[Summarizer]
β
βΌ
[Critic]
β
βββ Score β₯ 8 ββββββββββΊ [Final Report]
β
βββ Score < 8 ββββββββββΊ Feedback Loop
β
βΌ
[Researcher]
Coordinates specialized AI agents through a persistent graph-based workflow to improve research quality and consistency.
Pauses execution at configurable checkpoints, allowing users to review intermediate outputs and inject strategic guidance before execution continues.
Handles transient API failures, network interruptions, and rate limits using configurable retry policies and exponential backoff mechanisms.
Streams workflow progress and state updates through FastAPI-powered Server-Sent Events (SSE), enabling responsive user interfaces and live monitoring.
Maintains long-running research state while preventing uncontrolled context expansion and token bloat.
Optimized for rapid iterative workflows using Gemini 2.5 Flash, with support for Gemini 2.5 Pro when deeper reasoning is required.
- Python
- LangGraph
- LangChain
- FastAPI
- Uvicorn
- Pydantic
- Next.js 14
- TypeScript
- Tailwind CSS
- Lucide React
- Gemini 2.5 Flash
- Gemini 2.5 Pro
Create a .env file in the project root:
# Backend Configuration
GOOGLE_API_KEY=your_gemini_api_key_here
PORT=8000
HOST=127.0.0.1
# Frontend Configuration
NEXT_PUBLIC_API_URL=http://localhost:8000# Clone repository
git clone https://github.com/yourusername/ai-strategic-research-assistant.git
cd ai-strategic-research-assistant
# Create virtual environment
python -m venv agent_env
# Activate environment
source agent_env/bin/activate
# Windows:
# agent_env\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Start FastAPI server
python main.pyBackend services will be available at:
http://localhost:8000
Interactive API documentation:
http://localhost:8000/docs
cd frontend
npm install
npm run devOpen:
http://localhost:3000
POST /api/research/start
Initiates a new research workflow.
{
"topic": "Quantum Computing Scalability Milestones 2024-2026",
"model_preference": "gemini-2.5-flash"
}GET /api/research/stream/{task_id}
Opens a persistent SSE connection and streams workflow state updates.
researcher_yieldverifier_auditsummarizer_draftcritic_reviewhuman_interrupt_required
POST /api/research/steer
Provides strategic feedback to an active workflow.
{
"task_id": "string",
"user_feedback": "Focus deeper on topological qubit error-correction rates and skip general hardware overviews."
}- Market intelligence research
- Competitive analysis
- Technical due diligence
- Industry trend monitoring
- Executive briefing generation
- Investment research support
- Technology landscape analysis
The platform includes several safeguards designed for long-running research workflows:
- State persistence through LangGraph
- Retry and recovery mechanisms
- Human approval checkpoints
- Fact verification stages
- Controlled context growth
- Streaming-based observability
Distributed under the MIT License.
See the LICENSE file for additional information.