A production-grade, multi-agent AI system that autonomously manages tasks, schedules, and knowledge.
Most AI tools are reactive—you ask a question, and they answer. This system is proactive and orchestrational.
When you provide a high-level goal (e.g., "Prepare for my machine learning exams"), the Orchestrator Agent breaks it down into a dependency graph of subtasks and delegates them to specialized agents:
- 📝 Task Agent: Executes specific actionable items and summarizes outcomes.
- 📅 Calendar Agent: Estimates durations and schedules blocks of time.
- 📚 Knowledge Agent: Extracts, synthesizes, and stores key facts into a vector-ready knowledge base.
Note: While the original design requested Python (FastAPI/SQLAlchemy/Celery), this implementation has been built using TypeScript, Express, and React to ensure it runs flawlessly and interactively within the Google AI Studio preview environment. The architectural patterns (Orchestrator, Tool Abstraction, Async Execution) remain identical.
User Input ("Prepare for exams")
│
▼
[ Orchestrator Agent ] ──► Breaks down goal into JSON Plan
│
├─► [ Task Agent ] ──► Executes tasks & writes to DB
├─► [ Calendar Agent ] ──► Schedules tasks & writes to DB
└─► [ Knowledge Agent ] ──► Extracts facts & writes to DB
│
▼
[ Database Layer ] (Tasks, Schedules, Notes, Agent Logs)
│
▼
[ React Dashboard ] (Real-time monitoring of agent activity)
- Multi-Agent Coordination: Agents communicate via structured JSON and share a common state.
- Async Workflow Engine: The Orchestrator delegates tasks asynchronously, simulating a background worker queue.
- Real-Time Dashboard: Monitor agent thought processes, task statuses, and generated knowledge in real-time.
- Production-Ready Backend: Built with Express.js, featuring clean API endpoints and robust error handling.
- Cloud-Native: Fully Dockerized and ready for Google Cloud Run deployment.
Accepts a high-level goal and kicks off the multi-agent orchestration.
curl -X POST http://localhost:3000/api/plan \
-H "Content-Type: application/json" \
-d '{"goal": "Research quantum computing basics"}'Returns the current state of the system (Tasks, Schedules, Notes, Logs).
This project is fully containerized and ready to be deployed to Google Cloud Run.
export PROJECT_ID="your-gcp-project-id"
export REGION="us-central1"
export IMAGE_NAME="gcr.io/$PROJECT_ID/multi-agent-system"
docker build -t $IMAGE_NAME .gcloud auth configure-docker
docker push $IMAGE_NAMEgcloud run deploy multi-agent-system \
--image $IMAGE_NAME \
--platform managed \
--region $REGION \
--allow-unauthenticated \
--set-env-vars="GEMINI_API_KEY=your_api_key_here,NODE_ENV=production".
├── Dockerfile # Production Docker configuration
├── package.json # Dependencies and scripts
├── server.ts # Express Backend Entry Point
├── src/
│ ├── agents/ # AI Agents
│ │ ├── orchestrator.ts # Planner & Controller
│ │ ├── task_agent.ts # Task Execution
│ │ ├── calendar_agent.ts # Scheduling
│ │ └── knowledge_agent.ts # Information Extraction
│ ├── api/
│ │ └── router.ts # FastAPI-equivalent routing
│ ├── db/
│ │ └── schema.ts # Database schema & ORM abstraction
│ ├── App.tsx # React Dashboard
│ └── main.tsx # Frontend Entry Point
- Database: Swap the in-memory
schema.tswith Prisma + PostgreSQL for persistent storage. - Message Queue: Integrate BullMQ or RabbitMQ for robust retry logic and distributed agent execution.
- Vector Search: Connect the Knowledge Agent to Pinecone or Milvus for semantic retrieval of stored notes.
- Plug-and-Play Agents: The
assignedAgentrouting in the Orchestrator can easily be expanded to support new specialized agents (e.g.,EmailAgent,CodeAgent).