Skip to content

About

Production-style Multi-Agent AI Assistant built with Python, Streamlit & Gemini 2.5 Flash featuring intelligent routing, planner & research agents, parallel execution (ThreadPool), memory, tool orchestration, and a modern interactive dashboard.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

9 Commits

Folders and files

Repository files navigation

πŸ€– Multi-Agent AI Assistant

Python Streamlit Gemini Architecture Status

Intelligent Multi-Agent AI System built with Python, Streamlit and Google Gemini

A modular AI assistant capable of routing, planning, parallel research, synthesis, memory management and intelligent tool execution.


πŸ“– Overview

This project demonstrates a production-style Multi-Agent AI System where multiple specialized AI agents collaborate to solve user requests.

Instead of relying on a single LLM prompt, the system intelligently routes incoming queries to dedicated agents, executes research in parallel, synthesizes the outputs, and presents the final response through a clean Streamlit interface.

The project emphasizes software architecture, modularity, concurrency, and intelligent orchestration, making it suitable for showcasing AI engineering skills.


✨ Key Features

πŸ€– AI Capabilities

  • Multi-Agent Architecture
  • Intelligent Router Agent
  • Planner Agent
  • Research Agent
  • Synthesizer Agent
  • Google Gemini 3.6 Flash Integration
  • Prompt Engineering
  • Context-aware Task Routing

⚑ Performance Features

  • Parallel Research using ThreadPoolExecutor
  • Concurrent Agent Execution
  • Execution Time Tracking
  • Workflow Visualization
  • Optimized Response Pipeline

🧰 Built-in Tools

  • Calculator Tool
  • Memory Tool
  • Task Manager
  • Information Extraction Tool
  • Dynamic Tool Routing

πŸ–₯ User Interface

  • Modern Streamlit Dashboard
  • Live Workflow Status
  • Interactive Chat Interface
  • Responsive Layout
  • Execution Metrics
  • System Monitoring

πŸ— Software Engineering

  • Modular Codebase
  • Separation of Concerns
  • Scalable Agent Design
  • Reusable Components
  • Logging Support
  • Environment Variable Configuration
  • Clean Project Structure

πŸ› System Architecture

graph TD

A[User Prompt]

A --> B[Router Agent]

B --> C[Planner Agent]

C --> D1[Research Agent]

C --> D2[Calculator Tool]

C --> D3[Memory Tool]

C --> D4[Extract Tool]

D1 --> E[Synthesizer Agent]

D2 --> E

D3 --> E

D4 --> E

E --> F[Final Response]

F --> G[Streamlit Dashboard]
Loading

πŸ”„ Request Workflow

flowchart LR

User --> Router

Router --> Planner

Planner --> ParallelResearch

ParallelResearch --> ToolExecution

ToolExecution --> Synthesizer

Synthesizer --> Response

Response --> UI
Loading

βš™ Agent Collaboration

graph LR

Router --> Planner

Planner --> Research

Planner --> Calculator

Planner --> Memory

Planner --> Extract

Research --> Synthesizer

Calculator --> Synthesizer

Memory --> Synthesizer

Extract --> Synthesizer

Synthesizer --> User
Loading

πŸ“‚ Project Structure

Multi-Agent-AI-System/
β”œβ”€β”€ app.py                     Streamlit UI entry point
β”œβ”€β”€ main.py                    CLI entry point (terminal chat loop)
β”‚
β”œβ”€β”€ agent/
β”‚   β”œβ”€β”€ orchestrator.py        Main routing + execution logic
β”‚   β”œβ”€β”€ router.py               Classifies intent, builds execution plan
β”‚   β”œβ”€β”€ planner_agent.py        Breaks research requests into subtasks
β”‚   β”œβ”€β”€ research_agent.py       Executes a single research subtask
β”‚   β”œβ”€β”€ multi_orchestrator.py   Runs research subtasks in parallel
β”‚   β”œβ”€β”€ synthesizer_agent.py    Merges research into one final answer
β”‚   β”œβ”€β”€ gemini.py               Gemini client + retry logic
β”‚   β”œβ”€β”€ prompts.py              All agent system prompts
β”‚   β”œβ”€β”€ memory.py                Conversation memory persistence
β”‚   β”œβ”€β”€ context.py               Shared execution context
β”‚   β”œβ”€β”€ logger.py                Structured agent logging
β”‚   β”œβ”€β”€ timer.py                 Execution timing utilities
β”‚   └── tools/
β”‚       β”œβ”€β”€ calculator.py        Safe AST-based arithmetic evaluator
β”‚       β”œβ”€β”€ memory.py            Stores/recalls facts (data/memory.json)
β”‚       β”œβ”€β”€ task_manager.py      Simple task list (data/tasks.json)
β”‚       β”œβ”€β”€ extract.py           Structured info extraction from text
β”‚       └── chat.py              Plain conversational fallback
β”‚
└── ui/
    β”œβ”€β”€ styles.py                Design system: colors, type, layout CSS
    β”œβ”€β”€ header.py                Brand header + live status
    β”œβ”€β”€ workflow.py              Pipeline node-graph visualization
    β”œβ”€β”€ sidebar.py                System readout + toolkit panel
    β”œβ”€β”€ footer.py                 Footer
    └── html.py                   Safe raw-HTML render helper

πŸ“Έ Application Preview

Home Dashboard

Home


Chat Interface

Chat


Research Execution

Research 1


Agent Workflow

Research 2


Final Response

Research 3


πŸ›  Tech Stack

Component Technology
Language Python
Frontend Streamlit
LLM Google Gemini 3.6 Flash
Concurrency ThreadPoolExecutor
Prompt Engineering Gemini API
Logging Python Logging
Version Control Git & GitHub

πŸš€ Installation

Clone the repository

git clone https://github.com/yourusername/Multi-Agent-AI-System.git

Go to the project directory

cd Multi-Agent-AI-System

Install dependencies

pip install -r requirements.txt

Create a .env

GOOGLE_API_KEY=YOUR_API_KEY

Run

streamlit run app.py

πŸ’‘ Example Prompts

Research the impact of AI on Rural Healthcare

Calculate (25+30)*4

Remember my favourite language is Python

What is my favourite language?

Extract the important points from the following text...

🎯 Future Improvements

  • Internet Search Integration
  • RAG using Vector Database
  • PDF & Document Upload
  • Agent Memory Persistence
  • Docker Deployment
  • Authentication
  • Multi-LLM Support
  • REST API
  • Voice Interaction

πŸ‘¨β€πŸ’» Author

Mahaveer Regar

B.Tech Electronics & Communication Engineering

SVNIT Surat

GitHub: https://github.com/mahaveer0738


⭐ If you found this project useful, consider giving it a Star.

Built with Python β€’ Streamlit β€’ Gemini API β€’ Multi-Agent Architecture

About

Production-style Multi-Agent AI Assistant built with Python, Streamlit & Gemini 2.5 Flash featuring intelligent routing, planner & research agents, parallel execution (ThreadPool), memory, tool orchestration, and a modern interactive dashboard.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages