A Python project that creates specialized LLM-based AI agents to analyze complex medical cases.
The system integrates insights from different medical specialists to provide comprehensive assessments
and suggested treatment directions, demonstrating the potential of AI in multidisciplinary medicine.
It is not intended for clinical use.
- Fixed bugs and updated
requirements.txt - Added
.gitignore - Upgraded core LLM to GPT-5
In the current version, we use three AI agents (GPT-5), each specializing in a different aspect of medical analysis.
A medical report is passed to all agents, which run in parallel (threading) and return their findings.
The outputs are then combined and summarized into three possible health issues with reasoning.
1. Cardiologist Agent
- Focus: Detect cardiac issues such as arrhythmias or structural abnormalities.
- Recommendations: Cardiovascular testing, monitoring, and management strategies.
2. Psychologist Agent
- Focus: Identify psychological conditions (e.g., panic disorder, anxiety).
- Recommendations: Therapy, stress management, or medication adjustments.
3. Pulmonologist Agent
- Focus: Assess respiratory causes for symptoms (e.g., asthma, breathing disorders).
- Recommendations: Lung function tests, breathing exercises, respiratory treatments.
Medical Reports/→ Synthetic medical report samplesResults/→ Outputs generated by the agents
- Clone the repo:
git clone https://github.com/hemachowdary-10/Medical-Agents-OpenAPI-Key-FastAPI-Langchain.git cd AI-Agents-for-Medical-Diagnostics - Create a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txt
- Set up your API credentials:
- Create a file named apikey.env in the project root.
- Add your OpenAI (or other LLM provider) credentials:
OPENAI_API_KEY=your_api_key_here
- Run the system:
python main.py