An end-to-end Agentic AI system that autonomously plans, executes, evaluates, and completes multi-step research tasks using LLMs (Gemini), FastAPI, and a React + Tailwind frontend, fully deployed on Google Cloud Run.
Cloud Run URL:
👉 https://agentic-ai-539457733412.asia-south1.run.app
Unlike traditional AI chat systems, this project implements a true agentic loop:
- Planning – Breaks a high-level goal into structured steps
- Execution – Selects and runs tools autonomously
- Evaluation – Decides success, retry, or failure
- State Tracking – Maintains execution state and metrics
- Termination – Produces a final grounded result
No hard-coded answers. No static flows.
User Goal
↓
Planner (Gemini)
↓
Structured Plan (JSON)
↓
Executor (Tools)
↓
Evaluator (Retry / Fail / Success)
↓
State Manager
↓
Final Result
web_search– Research queriessummarizer– Information synthesispython_executor– Controlled computation
- FastAPI
- Google Gemini API
- Python 3.11
- Docker
- Cloud Run
- React
- Tailwind CSS
- Framer Motion
- Axios
- Docker
- Google Cloud Build
- Artifact Registry
- Cloud Run
agentic-research-agent/
│
├── backend/
│ ├── api/
│ │ ├── main.py
│ │ ├── agent_runner.py
│ │ └── schemas.py
│ ├── planner/
│ ├── executor/
│ ├── evaluator/
│ ├── state/
│ └── tools/
│
├── frontend/
│ ├── src/
│ ├── public/
│ ├── package.json
| ├── postcss.config.js
│ └── tailwind.config.js
│
├── Dockerfile
├── .dockerignore
├── .gitignore
└── README.md
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
uvicorn backend.api.main:app --reload --port 8000Health check:
http://localhost:8000/api/health
cd frontend
npm install
npm startCreate production build:
npm run builddocker build -t agentic-ai .
docker run -p 8080:8080 -e GEMINI_API_KEY=YOUR_KEY agentic-aiApp runs at:
http://localhost:8080
gcloud projects create agentic-research-ai-prod
gcloud config set project agentic-research-ai-prod
gcloud services enable run.googleapis.com cloudbuild.googleapis.comgcloud builds submit --tag asia-south1-docker.pkg.dev/agentic-research-ai-prod/agentic-repo/agentic-ai .gcloud run deploy agentic-ai --image asia-south1-docker.pkg.dev/agentic-research-ai-prod/agentic-repo/agentic-ai --platform managed --region asia-south1 --allow-unauthenticated --set-env-vars GEMINI_API_KEY=YOUR_KEY| Variable | Description |
|---|---|
GEMINI_API_KEY |
Google Gemini API key |
REACT_APP_BACKEND_URL |
Backend base URL (frontend) |
- Steps executed
- Retry counts
- Tool success rate
- Execution state tracking
Indrasish Bhattacharjee
MIT License
⭐ If you like this project, consider giving it a star!