An intelligent document processing system that classifies and extracts information from multiple input formats using specialized agents.
- 📄 Supports PDF, JSON, and Email input formats
- 🧠 Intelligent classification and routing
- 🤹 Specialized extraction agents
- 🧬 Shared memory system for context preservation
- ⚡ Built with Python, FastAPI, and LangChain
/multi-agent-system
multi agent system/
├── memory_store.json
├── README.md
├── requirements.txt
├── agents/
│ ├── classifier.py
│ ├── email_agent.py
│ ├── json_agent.py
│ └── pdf_agent.py
├── data/
│ ├── sample_email.txt
│ ├── sample_invoice.json
│ └── sample_policy.txt
├── mcp/
│ ├── action_router.py
│ └── api.py
├── memory/
│ └── store.py
├── static/
│ ├── app.js
│ └── styles.css
└── templates/
├── agent_flow.html
└── index.html
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
cp .env.example .env # Edit .env with your API keys
Run the FastAPI server:
uvicorn mcp.api:app --reloadThe API will be available at http://localhost:8000
POST /process: Process any input documentGET /memory/{conversation_id}: Retrieve processing history "# multi-agent-system" "# Multi-Agent-System"

